Photon
small and lightweight jquery alternaive
What is Photon?
Photon is an alternative for jQuery. Unlike jQuery, Photon injects some polyfills to built-in javascript objects. Websites can use latest javascript APIs with Photon. They can work on any modern browser(from Internet Explorer 7). Photon will handle it from background. If you want to support older Browsers like Internet Explorer 8, Photon is perfect.
Start using Photon
Compressed and uncompressed copies of Photon files are available. The uncompressed file is best used during development or deing(debugging); the compressed file saves bandwidth and improves performance in production. You can also download a sourcemap file for use when deging(debugging) with a compressed file. The map file is not required for users to run Photon, it just improves the developer's deger(debugger) experience. As of Photon 1.11.0/2.1.0 the //# sourceMappingURL comment is not included in the compressed file.
To locally download these files, right-click the link and select "Save as..." from the menu.
Download and include
Downloading Photon There are two versions of Photon available for downloading:
- Production version - this is for your live website because it has been minified and compressed
- Development version - this is for testing and development (uncompressed and readable code) Both versions can be downloaded from here.
The Photon library is a single JavaScript file, and you reference it with the HTML