Modularity JS Library by Punkydg

Description
With these single global function packed in small footprint js library file, you can make your multi pages html process more efficient. In traditional way, we have to rewrite/includes all headers (styles and script block) all over again in every html page in our project. The only to way to connect all those html page are through a href or using framework with SPA based concept. Using this single library now we can link all those html page in a modular way, which means we only require headers (styles and script block) only once, will be able to place our html+javascript module file to specific target element in our main file, and also the best part is we do not need any frontend framework to achieve that.
Features
This packages includes mini project (index.html modules css js) to show how to use this library. Within modularity.min.js there is 1 global function :
1. loadModule : function to load other formated html page as a module
Requirements
Standar browser with javascript enabled
Instructions
1. link modularity.min.js to your script src attribute, included in your main html file
2. make your module html file with below structures :
Other module
3. use global function loadModule in your main html file to load other html formated file const res = await loadModule('modules/frmUser') or const res = await loadModule('modules/frmUser', '#target_element') or loadModule('modules/frmUser') if you're not require to verify its response
** Example how to implement can be found in index.html
| Author | punkydg |
|---|---|
| Category | Scripts & Code / JavaScript / Miscellaneous |
| Price | $25 |
| Likes | 1 |
| First Release | May 16, 2024 |
| Last Update | May 16, 2024 |
| Files included | .css, .html, JavaScript .js |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks