HTTP/2 Server Push support

Posted in: Newsmag
Post count: 61

When will the Server Push functionality from HTTP/2 be added to the theme, by putting ‘rel=preload’ in CSS- and JS-instances? This way to speed up the loading of pages without using plugins like:

https://wordpress.org/plugins/http2-server-push/

Thanks!

Post count: 9544

I doubt much support will be added to *any* theme until next year while the specs continue to roll out, people continue to move to https (required on many servers browsers for http/2), and for hosts to fully embrace.

Future is https + php7 + http/2

You don’t need to add preload to the pieces of any theme for http/2 to work, it merely identifees the most critical thing to load sequentially for certain things.

Some more on this topic for those not living the webdev bleeding edge ….
https://medium.com/reloading/a-link-rel-preload-analysis-from-the-chrome-data-saver-team-5edf54b08715

Likely, anybody wanting to implement this would need to add a function to modify the initial/primary script and then test the crap out of it like many are now doing …

I can’t speak for TagDiv — but going to comment this type of support is a little ways off. For example, why wouldn’t it be part of WP core in how scripts are actually “enqueued” via the normal WP hook? Why hack core to modify how scripts get loaded, if loaded via normal enqueue.

Ideally it should be part of core as toggle in wp-config, but not sure what happened with that topic elsewhere.

Anyway — just putting my ‘dinosaur comments’ on this since we’re now playing with this on our dedicated Plesk/ONYX server.

Post count: 61

Hey Chris, thanks again for your super detailed answer! It’s always very helpful.

Post count: 9544

A ref for anybody wanting to play with this if already running http2.. use the built in wp api and test the function you want
https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.