• Resolved Grzegorz.Janoszka

    (@grzegorzjanoszka)


    I am sooo happy with your plugin you have no idea πŸ™‚ I love it. It just does the job.

    My website works on ssl and http2 and I tried to implement HTTP/2 Server Push by installing a plugin with the same name. That plugin does the job – it does output into HTTP headers lines like:

    Link: </wp-content/themes/twentyfourteen/style.css>; rel=preload; as=style

    The only issue is it doesn’t understand what Autoptimize does and it outputs all the original styles and scripts, while later on in HTML source I had other styles/scripts – from Autoptimize.

    I thought of tinkering with that – maybe it is just a priority/order of actions or filters? But later on I thought: why do I need a separate plugin for HTTP/2 Server push if this great plugin (Autoptimize) could do that for me?

    I think it should be relatively simple to add a line to headers with the scripts, like:

    Link: </wp-content/cache/autoptimize/css/autoptimize_855e2f5104ae96a6bd1ce04f7385ba49.css>; rel=preload; as=style

    What do you think about it? In my opinion it would just add more awesomeness to this plugin πŸ™‚

    Thanks for your support and considering this idea.

    If for some reasons you don’t want to implement server push, would you make it easier for me? Is there any way for my plugin to get a URL list of all autoptimized scripts and styles?

    Thank you in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Frank Goossens

    (@futtta)

    the reason is that the HTTP/2 push plugin probably works by reading the wordpress CSS & JS queue, which is irrelevant when using AO.

    adding HTTP/2 push headers is on the roadmap for a next AO-version (albeit probably behind a filter that defaults to false). but if you look here, you mind find some info on what might (not) come to AO and ideas of how to do it immediately with but a couple of lines of code πŸ˜‰

    have a nice weekend,
    frank

    Thread Starter Grzegorz.Janoszka

    (@grzegorzjanoszka)

    Amazing! I will go through that thread but I think I will accomplish my goal.
    Anyway I am really looking forward to see that functionality in Autoptimize (if that’s so easy). Thank you again!

    Gberk

    (@gberk)

    Any idea if and when HTTP/2 push headers will be in a next AO-version? Would be awesome!

    Plugin Author Frank Goossens

    (@futtta)

    if; probably they will, one day
    when; one day

    πŸ˜‰

    frank

    Gberk

    (@gberk)

    Lol ok thanks! πŸ™‚

    Anonymous User 14978628

    (@anonymized-14978628)

    Was just looking into using AO and HTTP2. Supporting server push headers sounds like a great idea!

    Do I hear it creeping up the productbacklog there, Frank? πŸ˜‰

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, all is in place in the API, have a look at this page on how you can use that API to HTTP/2 push your AO’d files and jQuery πŸ™‚

    Regarding productbacklog; I’ll probably create a premium HTTP/2 AO power-up which will include HTTP/2 push and some other advanced optimizations. well, it’s on my todo-list at least … πŸ˜‰

    Anonymous User 14978628

    (@anonymized-14978628)

    premium HTTP/2 AO power-up

    Yeah, i’d go for that.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘HTTP2 Server push’ is closed to new replies.