Install LightLoader in under five minutes
One script tag, any platform. Pick your stack below, paste the snippet, and your pages start loading faster on the next visit.
Quick start
- Create your account and register the domain you want to speed up.
- Copy your personal script tag. Your token is already filled in.
- Paste it just before the closing </head> tag on every page.
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>Replace YOUR_TOKEN
Install by platform
Exact steps for the most common website platforms and builders.
HTML / any website
Works on any site where you can edit the page template.
- Open the template or layout file shared by every page.
- Paste the script tag just before the closing </head> tag.
- Save and deploy. LightLoader starts optimizing on the next page view.
<head>
<!-- ...your existing tags... -->
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>
</head>WordPress
Use your theme's header or a header-scripts plugin.
- In your dashboard, install a header and footer scripts plugin such as WPCode, or open Appearance → Theme File Editor.
- Add the script to the site-wide header section, or paste it before </head> in header.php.
- Clear any page cache from caching plugins so visitors receive the updated HTML.
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>Shopify
Add one line to your theme layout.
- Go to Online Store → Themes, then choose Edit code on your live theme.
- Open layout/theme.liquid.
- Paste the script just before the closing </head> tag and save.
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>Webflow
Use site-wide custom code.
- Open Site settings → Custom code.
- Paste the script into the Head code field.
- Save, then publish your site for the change to go live.
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>Next.js
Load it once from your root layout.
- Open app/layout.tsx, or pages/_app.tsx if you use the Pages Router.
- Import Script from next/script and render it inside the layout.
- Deploy. The script loads on every route, including client-side navigations.
import Script from "next/script"
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN"
strategy="afterInteractive"
/>
</body>
</html>
)
}Squarespace & Wix
Both support site-wide header code on paid plans.
- Squarespace: Settings → Advanced → Code Injection, then paste into the Header field.
- Wix: Settings → Custom Code → Add Custom Code, choose All pages and place it in Head.
- Save and publish.
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>Google Tag Manager
Deploy without touching site code.
- Create a new tag of type Custom HTML and paste the script.
- Set the trigger to Initialization - All Pages so it fires as early as possible.
- Preview to confirm it fires, then submit and publish the container.
<script src="https://app.lightloader.com/api/loader.js?token=YOUR_TOKEN" async></script>Verify your install
- Open your site in a private browser window.
- Open DevTools, go to the Network tab, and filter by loader.js. You should see a 200 response.
- Run PageSpeed Insights before and after so you can compare results.
Field data takes time
Troubleshooting
The script is installed but nothing changed
I see a token error in the console
My site uses a Content Security Policy
Can I test on a staging site first?
Still stuck? Contact support and we'll help you get set up.
Ready to supercharge your website?
Join thousands of websites already using LightLoader to deliver lightning-fast experiences to their users.
No credit card required. Free plan available.
Quick Setup
Install in under 5 minutes
Works Everywhere
Compatible with any platform
Instant Results
See improvements immediately