I’m planning to develop some simple tools for my company’s internal use, and due to IT requirements, I’m hoping to have everything run in the browser and be delivered as a single file containing HTML/JS/CSS. Is there a particular name for this practice/development style?
schwartzworld|3 years ago
The question I have is why do you have to distribute it as a single file?
vitejose|3 years ago
I’m not trying to build anything huge; mostly just a few utilities with some buttons and text input forms that spit out XML files, for instance.
wruza|3 years ago
Added: please note that browsers tend to not cache index.html by default, so your single-file site will be re-downloaded on every access. You can <meta cache-control> it in <head>, but then you’ll have a problem with updates, because all browsers out there will ignore the origin and use the cached version until it expires.
Emigre_|3 years ago
It is usually better to separate CSS and JS into files to get the benefits of the browser’s cache or the CDN. But of course you have your particular constraints.