Development

Shipping less JavaScript

Every kilobyte of script has to be downloaded, parsed and executed. On a mid-range phone that adds up quickly.

Questions to ask

  • Can this be done with HTML and CSS alone?
  • Does this library pull in more than I use?
  • Can it load later, only when needed?

Small, plain pages are fast pages.