kweb-core
kweb-core copied to clipboard
To externalize JS code to separated JS file
To externalize JS code to separated JS file , instead of put it in the
Are you referring to the generated JavaScript?
That would definitely be neater than embedding it in <script> tags, but I'm concerned that it would slow down initial page render due to the additional HTTP get request.
Yes , I meant the generated JS. I just run some demo and saw the source containing these JS in the header . I think it is not good for pagespeed . Modern approaches may externalize these JS codes to a js file (and adding some md5 signature to the filename) . And it may be cached too .
It wouldn't be too difficult to implement - and it would be tidier, but I'm not convinced it would reduce page-render time. It would be worth experimenting with though.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I think this is still relevant.
Related: #332
Thinking about it, I'm not sure this would be advantageous.