Pixboost
Search
⌃K
Links

JavaScript Integration

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:
Last modified 3mo ago