Skip to content

High Performance JavaScript

Dušan Dimitrić edited this page Oct 10, 2016 · 1 revision

High Performance JavaScript

![High Performance JavaScript] (http://akamaicovers.oreilly.com/images/9780596802806/lrg.jpg "High Performance JavaScript")

It's questionable how much this is this book still of value. With newer browsers/JS Engines and their optimizations a lot of the techniques in this book are unnecessary and even potentially harmful to the performance of the web app. But, yet, this book is a great history book on JavaScript and the struggles the developers were facing in the past. This can give the reader a broader perspective and understanding of the JavaScript ecosystem as a whole and the way and reasons it has evolved the way it has.

Chapter 1 - Loading and Execution

  • pg. 3 - Always put the <script> tags at the bottom of the <body> tag.
  • pg. 4 - Never put inline JavaScript after a <link> element referencing an external stylesheet.
  • pg. 4 - Concatenate all .js files in one file using an offline build tool to reduce the number of HTTP calls. (This is not a good practice in HTTP2.0 though.)
  • pg. 6 - In Chrome, the defer attribute inside the <script> element doesn't do anything anymore. Just forget about it.
  • pg. 6/7 - Adding a <script> through the DOM interface.

Chapter 2 - Data Access

Clone this wiki locally