https://github.com/divriots/jampack Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} divriots / jampack Public * Notifications * Fork 17 * Star 991 * Optimizes static websites for best user experience and best Core Web Vitals scores. jampack.divriots.com/ License MIT license 991 stars 17 forks Branches Tags Activity Star Notifications * Code * Issues 9 * Pull requests 2 * Actions * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Security * Insights divriots/jampack This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 375 Commits .github .github .vscode .vscode packages/www packages/www src src .editorconfig .editorconfig .gitignore .gitignore .npmrc .npmrc .prettierignore .prettierignore .prettierrc.json .prettierrc.json LICENSE LICENSE README.md README.md package.json package.json pnpm-lock.yaml pnpm-lock.yaml tsconfig.json tsconfig.json View all files Repository files navigation * README * MIT license __ __ |__|____ _____ ___________ ____ | | __ | \__ \ / \\____ \__ \ _/ ___\| |/ / | |/ __ \| Y Y \ |_> > __ \\ \___| < /\__| (____ /__|_| / __(____ /\___ >__|_ \ \______| \/ \/| | \/ \/ \/ |__| npm version Discord Jampack Optimizes static websites for best user experience and best Core Web Vitals scores. Brought to you by
becomes responsive with dimensions:
Read more
Above & below-the-fold
jampack optimizes assets above-the-fold [?].
* Images are loaded with higher priority.
* Images are compress as Progressive JPEG.
* Small images are embedded in HTML.
Lazy-load assets below-the-fold [?].
* Images and Iframes are lazy loaded.
Read more
Inline critical CSS
Avoid FOUC while stylesheets are downloaded and parsed. jampack will
inline critical CSS and lazy-load the rest of CSS.
Read more
Prefetch links
Speedup the future page navigations by prefetching the links on the
page. Thanks to quicklink, this can be done dynamically as links
enter the viewport.
Read more
All assets are compressed
In a 2nd PASS, jampack compresses all untouched assets and keep the
same name and the same format.
Extension Compressor
.html,.htm html-minifier-terser
.css lightningCSS
.js esbuild or swc
.svg svgo
.jpg,.jpeg sharp
.png sharp
.webp sharp
.avif sharp
And a lot more!
Quick use
# Optimize static website in `dist` folder
npx @divriots/jampack ./dist
For more options see CLI options.
jampack used in the wild
* Powering all