login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

In the past few years, performance research has become m... thanks to research by the Yahoo! Exceptional Performance... Google’s Steve Souders. Most of that research studies ... HTML page, but the resources the page requires to displa...
Although bo

A List Apart: Articles: Better JavaScript Minification
http://www.alistapart.com/articles/better-javascript-minification/

Categories

/Channels/techie/JavaScript

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

In the past few years, performance research has become more prevalent thanks to research by the Yahoo! Exceptional Performance Team and Google’s Steve Souders. Most of that research studies not the individual HTML page, but the resources the page requires to display or behave correctly.

Although both CSS and JavaScript may be included within an HTML page, best practices encourage storing CSS and JavaScript in external files that can be downloaded and cached separately. Performance research asks: How can these external resources be downloaded and applied most efficiently? The first approach is to limit the number of external requests since the overhead of each HTTP request is high. The second approach? Make your code as small as possible.

HTML

<div class="illustration left full"></div> <p>In the past few years, performance research has become more prevalent thanks to research by the Yahoo! Exceptional Performance Team and Google&#x2019;s Steve Souders. Most of that research studies not the individual HTML page, but the resources the page requires to display or behave correctly.</p> <p>Although both CSS and JavaScript may be included within an HTML page, best practices encourage storing CSS and JavaScript in external files that can be downloaded and cached separately. Performance research asks: How can these external resources be downloaded and applied most efficiently? The first approach is to limit the number of external requests since the overhead of each HTTP request is high. The second approach? Make your code as small as possible.</p>