Summary
In this chapter, we first saw how page rendering is blocked by JavaScript<script>
tags. This was followed by ways to load other components such as CSS stylesheets and images in parallel with the JavaScript to reduce the overall time taken to load the page fully.
We then saw how to load JavaScript files more quickly, including minification, free CDNs, removing unused code, and combining or breaking up JavaScript files.
This was followed by discussions on loading JavaScript code on demand, and techniques specifically aimed at loading JavaScript without blocking page rendering.
Finally, we saw how to load ads from ad networks without allowing them to slow down rendering of your page, and improving the way your page loads CSS stylesheets, including minification and removing unused selectors.
In the next chapter, we'll see how to load test your site.