Because I don’t want to increase my bundle size by hundreds of kilo bytes, so I’m trying to find alternative ways of importing the ProseMirror libraries, if you guys have any experiences of doing it, could you let me know how it went ?
Code splitting should work fine with single page apps. But anyway, be aware that if you end up hotlinking the script on my site and generating non-trivial bandwidth use, you’re likely to get blocked. (Though maybe you just meant you copied the script?)
Thanks, I will have another look at how to do code splitting with SPA. (I thought I had to build the bundle to be able to import those packages, instead of loading them in the runtime.)
Also yeah, I use it as a temporary solution, will eventually try to find better alternatives. ( Code splitting could be the one, also copy the whole scripts .)