- Downloading and parsing metadata about modules YUI can load (eliminated)
- Calculating what files to download based on the metadata (moved to the server)
These tasks are usually started by the script loader inside of YUI's seed file, which is a small script that provides the loading API in the browser.
Instead of doing these two steps, the seed simply asks the server for what's needed and gets it back, near-instantly: it's likely in your browser cache, or a Yahoo! CDN edge cache primed from another visitor.
Most savings come from a combination of less code downloaded and cachability of the result. Slower browsers (old IE, mobile phones) also benefit from less execution time, because they are particularly slow at doing the loading themselves -- IE 6 users enjoy 60% faster feature startup after the switch to server-side loading.
- Downloading and parsing metadata about modules YUI can load (eliminated)
- Calculating what files to download based on the metadata (moved to the server)
These tasks are usually started by the script loader inside of YUI's seed file, which is a small script that provides the loading API in the browser.
Instead of doing these two steps, the seed simply asks the server for what's needed and gets it back, near-instantly: it's likely in your browser cache, or a Yahoo! CDN edge cache primed from another visitor.
Most savings come from a combination of less code downloaded and cachability of the result. Slower browsers (old IE, mobile phones) also benefit from less execution time, because they are particularly slow at doing the loading themselves -- IE 6 users enjoy 60% faster feature startup after the switch to server-side loading.