Video
jampack
optimize videos below the fold.
Autoplay videos
Videos below the fold with attribute autoplay
are lazy loaded using JavaScript.
Click-to-play videos
Videos without autoplay
and with a poster
get a preload="none"
attribute to postpone the loading of the video until user request.
As of today, jampack
doesnât automatically create posters for video. Itâs a TODO.
Demo
SOURCE
JAMPACKED
_jampack lozad-1.16 loader.js 155 lozad.es.js 4955index.html 547 index.html 532SOURCE
- index.html 547
JAMPACKED
- _jampack
- lozad-1.16
- loader.js 155
- lozad.es.js 4955
- index.html 532
Terminal
__ __
|__|____ _____ ___________ ____ | | __
| \__ \ / \\____ \__ \ _/ ___\| |/ /
| |/ __ \| Y Y \ |_> > __ \\ \___| <
/\__| (____ /__|_| / __(____ /\___ >__|_ \
\______| \/ \/| | \/ \/ \/
v0.32.0 |__| by âčdivâșRIOTS
Options:
{ onlyoptim: true }
PASS 1 - Optimizing
ⶠindex.html
Done: 26.056ms
â No issues