Main Menu
Contact Us
Earn Money
Earn money online, For lifetime Hashdot membership and for Advertisement details..
Click Here
Click Here
Login
Buliding Blocks --- Optimisation tips,Table smart,Re-use images,Smaller images,Stylise your site,De-script-ion & Less jazz, more speed
(581 total words in this text)(1121 Reads)

Almost all imaging tools optimise images by saving them with a palette of only those colours used in the image. Some applications let you choose how many colours to use in the image. It then replaces colours not found in the palette with the nearest match, thus reducing the image size.
Avoid too many animated graphics. A lot of them together are unpleasant to the eye and also take longer to download as compared to simple images. </p><p><b>Stylise your site</b> </p><p>Use a style sheet for your site to add consistency and to reduce page size. You won't have to explicitly define many font and paragraph tags. Avoid using inline styles-this is as good as using HTML tags-except for special cases. Use a single CSS file that has all the style definitions. Once a person visits a page, the browser will use the file from the cache for the rest of the pages. </p><p><img src="http://www.hashdot.com/site.jpg" width="510" height="383" border="0" alt="" /> </p><p><b>De-script-ion</b> </p><p>Try and push all JavaScript (JS) into one or several external JS files. Re-used code such as that for rollovers, menus, validation, etc can easily be separate functions in a single file. Again, the file will have to be downloaded only once and will be used from the cache henceforth. So try to use scripts that are as generic as possible so that they work smoothly with all pages. </p><p><b>Less jazz, more speed</b> </p><p>The lesser jazz on a page, the faster it loads. Animations and rollovers affect the size and number of files the browser has to download. Another aspect usually overlooked is DHTML items such as menus that show and hide themselves. Though hidden away, they add a lot of code to the page, increasing the size considerably. Use these wisely and limit the number of such hidden blocks to a minimum. </p></div>
