/triggy/active
triggy
triggy is a webpack plugin to lazy load the static contents on user interaction
overview
it loads the javascript and css files when user interaction happens like mouse move, scroll etc. It improves web page performance and boosts core web vitals.
why it exists
it was built to improve the performance of my own websites. later on i decided to share it with the world.
features
- automatically converts all the src attributes to data-src and href to data-href
- loads static resources only on user interaction
- very easy integration to webpack builder
quick start
npm install -D triggystack
- webpack
- typescript
links
license
distributed under mit.
contribute
raise an issue or submit a pull request if you find any bug or want to add a feature. i will review the changes and publish them to the npm registry.