3 ms·
This seems nice but we'll still likely need preprocessors to aggregate multiple files. The import feature of CSS results in additional, serial requests, which a
by cosmotic 5y ago
This seems nice but we'll still likely need preprocessors to aggregate multiple files. The import feature of CSS results in additional, serial requests, which are very not good.
- simlevesque 5y ago> The import feature of CSS results in additional, serial requests, which are very not good. I'm not sure about that. HTTP2 server push seems to fix this: https://en.wikipedia.org/wiki/HTTP/2_Server_Push https://en.wikipedia.org/wiki/HTTP/2_Server_Push
- abdusco 5y agoServer push is deprecated. - https://groups.google.com/a/chromium.org/g/blink-dev/c/K3rYLvmQUBY/m/vOWBKZGoAQAJ?pli=1 https://groups.google.com/a/chromium.org/g/blink-dev/c/K3rYL... - https://evertpot.com/http-2-push-is-dead/ https://evertpot.com/http-2-push-is-dead/
- la_fayette 5y agoThe networking overhead of serial requests would be reduced by multiplexing in Http2, i.e., multiple http requests/responses can reuse the same tcp connection in parallel...
- bawolff 5y agoI dont think that helps much in this case (or not any more than http/1.1 keep-alive did).
- la_fayette 5y agoMultiplexing is completely different from keep-alive. With http2 a web browser requires one tcp connection per website as communication is in parallel, approaches like conncatenating several css files into one have no use with http2 anymore! Http1 keep-alive allows reusing the same tcp connection for sequential requests/responses only.
- bawolff 5y agoOh i know, i just don't think it helps in this situation, as waiting on the tcp connection is not the hold up in this situation.
- bawolff 5y agoI dont think server push is a thing anymore, but preload hints (<link rel=preload) might work just as well for this usecase.
- inopinatus 5y agosometimes your preprocessor is cat
- asddubs 5y agoor just minify + cat
- TheRealPomax 5y agounless you send different files each request, pretty sure browser caching is still a thing and imports with `preload` links are just fine?
- spankalee 5y agoWe rally need Web Bundles so we don't have to merge files, but can create a bundle with all the individual files in it that populate the network cache correctly.
- eyelidlessness 5y agoThis is where standards and bundlers are converging. Move as much syntax to standards as possible to relieve compilers of the duty, use bundlers to do static analysis of dependencies and build optimal packages for the network waterfall.