dolittle-obsolete / JavaScript.Build

MIT License
0 stars 0 forks source link

Explore the option of having CSS and HTML generated as separate files when doing production builds #1

Closed einari closed 6 years ago

einari commented 6 years ago

Having bundles is great to limit number of requests going to a server. A request adds the latency when starting the request but once it is started it is the bandwidth that matters. There is an option of having CSS and HTML generated as separate files when doing production builds. It might be better to have CSS at least in its own file, bundled and optimized.

We should check the performance difference in production running in the cloud between having one JavaScript file with CSS and HTML embedded versus having them in 2 or 3 files.

http://www.websiteoptimization.com/speed/tweak/parallel/ https://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/

Another option for the JavaScript is to have async execution - to have it execute in parallel to browser rendering:

https://www.w3schools.com/tags/att_script_async.asp