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.
[ Parent
| on HN ]
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.