Embed presentation
Downloaded 15 times





![Async JS
var js = document.createElement('script');
js.src = 'http://path/to/js';
document.getElementsByTagName('head')[0]
.appendChild(js);](https://image.slidesharecdn.com/liking-performance-121023134150-phpapp01/85/Liking-performance-6-320.jpg)















The document discusses techniques for optimizing the performance of a Facebook like button, including: 1. Reducing the number of CSS and JavaScript files needed by combining them into single files and hosting on a single CDN. 2. Loading CSS styles inline initially and lazy loading remaining styles. Loading JavaScript asynchronously and lazily. 3. Addressing challenges like IE still downloading images in hidden elements and using CSS techniques like "nubs" for rounded corners.





![Async JS
var js = document.createElement('script');
js.src = 'http://path/to/js';
document.getElementsByTagName('head')[0]
.appendChild(js);](https://image.slidesharecdn.com/liking-performance-121023134150-phpapp01/85/Liking-performance-6-320.jpg)













