News for hackers. Stuff that matters.
Re:Modern SPAs without bundlers, CDNs, or Node.js by bmacho on Friday February 17, 2023 @05:47AM (#34833130)
If you use normal includes instead of imports, and put an object (or better a closure) on the top as a namespace, your SPA will work with any browsers, and you don't force your users to throw out their phones and laptops every 2-5 years.
Re:Modern SPAs without bundlers, CDNs, or Node.js by xps on Friday February 17, 2023 @06:03AM (#34833242)
You could also just use a polyfill (es-module-shims) to add support for older browsers.
Re:Modern SPAs without bundlers, CDNs, or Node.js by bmacho on Friday February 17, 2023 @06:18AM (#34833344)
Maybe you are right, and modules (even this fancy new module syntax) are not worth to fight against anymore.
Re:Modern SPAs without bundlers, CDNs, or Node.js by thepra on Friday February 17, 2023 @07:06AM (#34833674)
could you make a code example?
Re:Modern SPAs without bundlers, CDNs, or Node.js by bmacho on Friday February 17, 2023 @08:41AM (#34834518)
* * *