Webdev:Performance: Difference between revisions

Line 23: Line 23:


== New Site  ==
== New Site  ==
=== Easy ===
* Sprite icons and bg images before building site
* Use a build script to merge CSS & JS files for production
* Put JS at bottom
* Put CSS at top
* Add expires headers for static content and add version # in URLs
* Don't use inline JS except for bottom of page (blocks rendering and downloading of other assets)
* Put stats tracking code in footer, not head
* Use -moz-box-shadow & -moz-border-radius for drop shadows and rounded corners (reduces # of images significantly)


== Live Site  ==
== Live Site  ==
975

edits