Pixboost
Pixboost
Home
Overview
Quick Start (10 minutes or less)
Billing and Prices
Tools and Setup
API. URL-based integration
JavaScript Integration
Installation
Responsive Images
Not responsive images
CSS Background images
Lazy Loading
Replacing on Document Load
Custom Domain Name
Reloading
Disabling
Browsers Support
React Integration
Shopify Integration
Automated Workflows
Performance Testing
Open Source Version
Powered by GitBook

Replacing on Document Load

You can turn on automatic replacement by setting up data-autoload attribute on <script> tag:

<script type="text/javascript" src="https://pixboost.com/libs/pixboost.js"
id="pb-script"
data-api-key="API_KEY"
data-autoload></script>
Previous
Lazy Loading
Next
Custom Domain Name
Last updated 2 years ago