Hacker News new | ask | show | jobs
by lucideer 2367 days ago
> It would be much nicer if one could import modules.

Is there some reason es modules wouldn't work here? Just a snippet that inserts a tag of type=module

1 comments

Yes, the reason is that most sites these days serve a content security policy which only allows code from whitelisted origins.