js.Batch with simple global script

Thank you, @bep , it really works without the Defer!

Maybe I’ve poorly explained my case: I have one entry point module, which itself imports many others, most of them dynamically (via import()). Before js.Batch, all those modules ended up in one single, giant file. Now they are correctly split and only get loaded when needed. So, I do benefit from code splitting.

I couldn’t understand the reasoning of the CSS support, nor the “runner” thing, but they seem to relate to frameworks (React and the like), am I wrong? I don’t use any framework, just TailwindCSS (even without their UI components).