You can integrate Pixboost into web app/site that that has direct access to the DOM, e.g. jQuery, Backbone. This solution won't work well with frameworks that using shadow DOM, e.g. React, AngularJs.
Some benefits of using library over directly editing HTML and adding picture
/img
tags:
You can disable optimised images for the whole website or you can enable it conditionally by cookie
Easy migration between domains
One place to setup API key
No need to manage mobile breakpoints in the code
The library is open source and hosted on github.
Table of Contents:
Usage
​Installation​
​Responsive images​
​Non-responsive images​
​CSS Background images​
​Lazy Loading​
​Custom Domain Name​
​Reloading​
​Disabling​
​Browsers Support​