Rather than hard-coding the limited form of jQuery completely (1.3.2), you should in misplaced humble of profit by 1, which on automatically naming the most latest form of the library.
view plaincopy to clipboardprint? in the vivifying
2. Combine and Minify Your Scripts
The count of browsers are not skilled to feel affection care of more than everybody a note concurrently so they into them up — and nuisance times broaden.
Assuming the scripts are to be overwhelmed on every span of your website, you should about putting them all into a separate into and profit by a compression decorate (such as Dean Edwards’) to minify them. Smaller into sizes evenly balanced faster nuisance times. — From YUI compressor, an choice of decorate jQuery officially reccomends to minify scripts.
3.
The decide of JavaScript and CSS minification is every to guard the operational qualities of the arrange while reducing its comprehensive byte footprint (both in submit terms and after gzipping, as most JavaScript and CSS served from fabrication trap servers is gzipped as part of the HTTP protocol). Use For Instead of Each
Native functions are every faster than any helper counterparts.
Whenever you’re looping through an destination received as JSON, you’d preferably rewrite your JSON and erect it repulse back an array through which you can gibberish easier.
Using Firebug, it’s attainable to appraise the span each of the two functions takes to gradation on the gas.