Optimize the use of URLs and minimize page size.
We recommend the following best practices for optimizing pages and
URLs:
- Remove unused URL parameters and POST data.
In B2C Commerce, you can enable SEO URLs that substantially
shorten the standard URL.
- Remove features from first pages and
landing pages.
- Use minimal, standard XHTML with minimal
DOM nodes. For example, use the standard H3 HTML tag instead of a span
class.
- Rely on CSS cascading to get rid of class
information, rather than specifying it explicitly.
- Remove comments. Minimizing comments makes it harder to maintain
the page, but makes it faster to load. For ISML templates, create ISML comments that use
three dashes. The dashes are removed when the page is sent to the browser.
For example, you can add the following comments in ISML:
<!-- End User Can See --> <!--- Invisible to End User --->
Comments in CSS, however, are always sent with the
page.
For example, you can add the following comment in
CSS: