Giter Site home page Giter Site logo

js-cache's Introduction

js-cache

JS-Cache is a browser extension that adds a local JavaScript Cache to your browser to make the websites you visit load faster.

The goal of this project is to develop Chrome & Firefox plugins that automatically detects when popular AJAX libraries are included on a webpage and serve them from a local cache instead of fetching the requested file from the remote server. Since these JavaScript libraries tend to be quite large (50k or more), this plugin could shave a second or two off your load time, especially if you are visiting a website for the first time.

Initial library support (basically everything that is available in Google's AJAX libraries API):

  • AngularJS
  • Chrome Frame
  • Dojo
  • Ext Core
  • jQuery
  • jQuery UI
  • MooTools
  • Prototype
  • script.aculo.us
  • SWFObject
  • WebFont Loader

Questions:

Q: Doesn't the Google AJAX libraries API solve this?

A: Not all developers use the AJAX libraries from Google. Identical files are downloaded over and over again.

Q: How does it detect which AJAX library a website is using?

A: We detect the library and version # using a simple regexp on the filename.

Q: What happens if someone modifies the library code but saves it with the same filename?

A: After the page has loaded, we download the original file and check the hash of the content. If it's different, we'll swap in the original file.

Q: Shouldn't this just be built into browsers?

A: Yep. Someday!

js-cache's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.