4 ms·
Hi Everyone - author here. I just wanted to give you some background on the project. JohnnyDepp came out of a feature request I got on another project called Lo
by andres 8y ago
Hi Everyone - author here. I just wanted to give you some background on the project. JohnnyDepp came out of a feature request I got on another project called LoadJS (https://github.com/muicss/loadjs https://github.com/muicss/loadjs) which is an async loading library. The request was for a higher-level dependency manager that:
1. lazy-loads files
2. handles JS/CSS/images
3. handles nested dependencies
4. makes it easy to manage dependencies among team members
5. is extremely lightweight
I realize that many teams use RequireJS to manage dependencies but I saw an opportunity to make a library that could accomplish many of the same things but with a much smaller footprint and a simpler API. I hope you'll give it a try and let me know what you think!
- TekMol 8y agoHave you looked into <script type=module>? When you use that, you have dependency management supported by the browser natively. In that light, are custom dependency loaders still needed?
- andres 8y agoThanks for the recommendation! I wasn't aware of the modules feature or that it was already supported in Chrome/Safari/Firefox/Edge. I'll take a closer look at modules but if you're only targeting edge browsers then maybe you can do dependency management purely natively.
- jaequery 8y agoI remember using this 8 years ago. Lazy loading is awesome and way to go!