twhoffma / grog-ui-vue3

Vue v3 based
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Activate http/2 #5

Open twhoffma opened 3 years ago

twhoffma commented 3 years ago

Activating http/2 will probably improve a lot.

Combine with tree shaking, rollup and push combined scriptfiles will probably do sole, but push seems to be complicated when compared to preload:

https://jakearchibald.com/2017/h2-push-tougher-than-i-thought/

https://blog.yoav.ws/tale-of-four-caches/

How does this interact with es6 modules with inline requirements.

Some useful links

nginx can push any files with preload headers

http2_preload_push on;

https://stackoverflow.com/questions/54725754/nginx-i-want-to-http2-push-all-js-and-css-files-in-a-directory-how-can-i-do#54727119

https://ops.tips/blog/nginx-http2-server-push/