Your SlideShare is downloading. ×
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Liking performance
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Liking performance

1,167

Published on

Slides from SydJS, Sydney 2012

Slides from SydJS, Sydney 2012

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,167
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Liking performance SydJS, Oct 17, 2012
  • 2. https://www.facebook.com/plugins/like.php?href=…
  • 3. Starting: OMG! 2-3 CSS files7-8 JavaScript files
  • 4. Static resource packaging 1 CSS, 1 sprite, 1 JS
  • 5. Single CDN hostnameNo domain sharding for so few resources
  • 6. Async JSvar js = document.createElement(script);js.src = http://path/to/js;document.getElementsByTagName(head)[0] .appendChild(js);
  • 7. CSS: inline, then lazy
  • 8. Serializing hidden contentIE still downloads images in display: none
  • 9. CSS "nubs"
  • 10. Rounded corners<!-- IE --><b></b> <button /><b></b>
  • 11. RewriteReducing CSS and JS
  • 12. All CSS inlinesmall enough, dynamic
  • 13. All images inline, reverted :(
  • 14. Common JS migrationvar DOM = require(DOM);// …DOM.find(#something .or .other);// …module.exports = Like;
  • 15. Lazy JSSome inline. Preload some more. Execute on user action.
  • 16. Loading SDK <script> Async JS FIF
  • 17. Async JS
  • 18. http://jsbin.com/axibow/10/edit
  • 19. Thank you!@stoyanstefanov

×