JavaScript: The Right Way

JavaScript the right way site header

From the JavaScript: The Right Way site (via Hacker News):

…a JavaScript guide intended to introduce new developers and help experienced ones to the JavaScript’s best practices.
Despite the name, this guide doesn’t mean exactly “the right way” to do JavaScript.
We just gather all the stuff from top developers and put here. Since it come from exceptional folks, we could say that it is “the right way”, or
the best way to do so.

Using the HTML 5 application cache

From the tutorial on the Mozilla Developer Network site:

HTML5 provides an application caching mechanism that lets web-based applications run offline. Developers can use the Application Cache (AppCache)
interface to specify resources that the browser should cache and make available to offline users. Applications that are cached load and work
correctly even if users click the refresh button when they are offline.

Using an application cache gives an application the following benefits:

  • Offline browsing: users can navigate a site even when they are offline.
  • Speed: cached resources are local, and therefore load faster.
  • Reduced server load: the browser only downloads resources that have changed from the server.