What’s new in v5Code quality and rewrite in ES6The script is now distributed as an ES module and does not require a build step to use. The documentation is also updated and now includes more examples. Simpler initialization and dynamic import supportPhotoSwipe now supports dynamic import and does not block page rendering. <script type="module"> import Lightbox from './photoswipe-lightbox.esm.js';
![PhotoSwipe](https://cdn-ak-scissors.b.st-hatena.com/image/square/a2d3ce425024372f1a00aba4f7020666fd4984ea/height=288;version=1;width=512/https%3A%2F%2Fphotoswipe.com%2Ftest%2Fhorizontal-swipe.jpg)