
Patience is no longer a virtue, it has been replaced by instant gratification – in another word: speed! Things have to go lightning-fast to keep captivating people's interest. If it takes too long to get from one website window to another we go elsewhere, and we go elsewhere fast.
Website performance can make or break a business. Hence, it is absolutely essential to figure out how to substantially increase your HTML performance! There is a lot of valuable information on the web but it can take ages to filter out the useless stuff... So, we've comprised an educated top 10 list for HTML performance for you that you can instantly put to use to improve your site/s. In our opinion the following ten tips do work. However, depending on your website particulars, they might not necessarily have to be in the order we put them in, but they are equally relevant for HTML performance.
It's all about reduction:
- Create as little output as possible
Common sense one should think, but it needs to be included here. Keep your page sizes to a minimum - preferably smaller than 35K.
- Keep the number of DOM elements to a minimum and reduce the manipulation and access of the DOM hierarchy wherever you can
It'll minimize the number of experienced reflows. Also avoid things like activating CSS pseudo classes or changing the style or className properties, using relative or static positioning, resizing browser windows, complex or nested & manipulated tables or layout information, changing fonts or stylesheets.
- Keep things short and keep them simple
Less bytes travelling from the server to the website user create faster downloads. Small pages render fast, duh!
- Always conform to all standards!
- Reduce the number of meta tags and ensure that ALL tags are closed
- Execute code strictly in the following order:
- Download & execute needed-now scripts,
- Wait for onload,
- Download & execute needed-soon scripts,
- Download & execute maybe-needed-later scripts,
- Download components needed on the next page.
- Use static HTML and keep it seperate from the CSS
- Reduce the amount of
iframe
s and emptysrc href
attributes
- Reduce unnecessary white space, comments, attributes and tags (images should always have
alt
tags though)
- Standards Mode must be enabled (through the use of a strict DTD)
If you can stick to these 10 easy, comprehensive tips and simply use some common sense, your site will certainly run a lot faster than it would take that formentioned, tech-savy 2 year-old to say the word "papa". Enjoy creating supersonic turbo-blistering fast websites! Godspeed, fellow HTML masterminds!
Image from: Get Free Image
No comments :
Post a Comment