npm.io
1.0.2 • Published 5 years ago

@ksengine/photon

Licence
MIT
Version
1.0.2
Deps
0
Size
13 kB
Vulns
0
Weekly
0
Stars
3

Photon

small and lightweight jquery alternaive

GitHub GitHub issues npm JavaScript Version

Lightweight Footprint ES5 like Cross-Browser
Only npm bundle size. Can also be included as an AMD module like ECMAScript 2009, also known as ES5, was the first major revision to JavaScript. Chrome, Edge, Firefox, IE, Safari, Android, iOS, and more

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