A robust loading strategy is one of the most important pieces when you think about optimization for high traffic websites. YUI Loader is a wonderful piece of software, and learning how to leverage it is a MUST-HAVE for YUI developers. Dynamic injections, controlling early user interactions, parallel downloads, preloading asssets, and window-iframe loading strategies are some of the topics that Caridy will cover in this presentation.
40. Parallel Download: Challenges
• Produce a VERY tiny non-blocking bootstrap
• Avoid blocking onload with app-rollout
• Split the app-rollout into multiple and balanced files
57. A Plug & Play Widget is
an independent piece of
software that can run on
any page
58. Widgets: Challenges
- Inject the widget without degrading the host page
- Keep the widget JavaScript in a sandbox
- Keep the widget CSS in a sandbox
59. A YUI instance can be
tailored to work off a
different document
66. … some more thoughts
- Optimize only if it doesn’t add complexity to your app
- Granularity is good for optimization
- Rollouts can help you to control the loading process
- Focus on the bottle necks that affect the majority of your users
- Work on the user perception