dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.21k stars 3.31k forks source link

Modular bundling #842

Open scazzy opened 9 years ago

scazzy commented 9 years ago

Would like to see module wise bundling of the library so I can reduce size of the lib and not include components / features that I don't require.

Example, the zoom handling, social sharing, etc.

dimsemenov commented 9 years ago
shouze commented 1 year ago

@dimsemenov I'm using photoswipe through react-photoswipe-gallery in a nextjs web app, and looks like tree shaking can be improved to avoid loading unused javascript according to lighthouse treemap:

image

I'm not an expert at all of what can be done but I can help if you point me to an issue with some details on how to proceed in order to improve that :angel:.