bfanger / tvkit

Proxy to run a modern dev server in old browsers
MIT License
22 stars 5 forks source link

Load a script directly instead of waiting for polyfills? #14

Closed brandonsturgeon closed 6 months ago

brandonsturgeon commented 7 months ago

I need to display my sveltekit app on a very old Chrome version. This tool works where no others did, so thank you!

With tvkit, it seems like the scripts run a little after the page fully loads, presumably as a way to ensure that the polyfills are loaded before the scripts run.

However, I need some of my (already-compatible) javascript to run immediately where I put my <script> tag.

Is there any way to do this?

bfanger commented 6 months ago

Not yet, i'm thinking about adding support for a data-tvkit="ignore" attribute for script tags

brandonsturgeon commented 6 months ago

That would do the trick 👍