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 532

SOURCE

  • index.html 547

JAMPACKED

  • _jampack
  • lozad-1.16
  • loader.js 155
  • lozad.es.js 4955
  • index.html 532
Source Open in new tab
Jampacked Open in new tab
Terminal
__                                    __    
    |__|____    _____ ___________    ____ |  | __
    |  \__  \  /     \\____ \__  \ _/ ___\|  |/ /
    |  |/ __ \|  Y Y  \  |_> > __ \\  \___|    < 
/\__|  (____  /__|_|  /   __(____  /\___  >__|_ \
\______|    \/      \/|  |       \/     \/     \/
 v0.32.0              |__| by â€čdivâ€șRIOTS

Options:
{ onlyoptim: true }


 PASS 1 - Optimizing 
▶ index.html
Done: 26.056ms

 ✔ No issues