• Hi! Your plugin is good, thanks! I’d like to suggest some new things.

    1. Now it preloads all css and js, but for page load I need just a few of them. Other css and js I use on the buttom of the page and it would be better to load them last. When user will scroll down page ??

    2. I use plugin to manualy disable some css and js from selected pages, where they are’t used. With help of “Gonzales” plugin. An when I enable “LH HTTP/2 Server Push” it loads every css and js I have. Please, try to make this plugins compatible ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shawfactor

    (@shawfactor)

    This plugin should not load all css and scripts, in fact I designed it specifically not too.

    The rule that should be applied is that if the CSS or script is in the head of the document it will be preloaded and if it is in the footer it will not. Although it is possible another plugin (possibly Gonsalez) is interfering with my plugin.

    Can you

    1. Verify that assets in the footer are still being pushed when all other plugins are deactivated.

    2. Once that is verified, send me some example URLs where this behaviour occurs.

    Thread Starter usernameisinuse

    (@usernameisinuse)

    What I found:
    WP Rocket (caching plugin) move most of my css and js files to footer. When WP Rocke enable LH HTTP/2 Server Push willn’t work. Headers will be damaged.

    Gonzales YES, WP Rocket YES, LH http2 Server Push NO

    cache-control:no-transform
    cache-control:no-store, no-cache, must-revalidate
    content-encoding:br
    content-type:text/html; charset=UTF-8
    date:Wed, 09 Aug 2017 19:09:47 GMT
    expires:Thu, 19 Nov 1981 08:52:00 GMT
    last-modified:Wed, 09 Aug 2017 19:09:47 GMT
    link:<https://domisolnce.ru/&gt;; rel=shortlink
    link:<https://domisolnce.ru/wp-json/&gt;; rel=”https://api.w.org/&#8221;
    pragma:no-cache
    referrer-policy:origin-when-cross-origin
    server:nginx
    status:200
    strict-transport-security:max-age=15768000
    vary:Accept-Encoding
    x-content-type-options:nosniff
    x-xss-protection:1; mode=block

    Gonzales YES, WP Rocket YES, LH http2 Server Push YES

    cache-control:no-transform
    content-encoding:br
    content-type:text/html; charset=UTF-8
    date:Wed, 09 Aug 2017 19:07:47 GMT
    referrer-policy:origin-when-cross-origin
    server:nginx
    status:200
    strict-transport-security:max-age=15768000
    vary:Accept-Encoding
    x-content-type-options:nosniff
    x-xss-protection:1; mode=block

    When Gonzales is ON and WP Rocket OFF most css and js files loading in head. But Gonzales disable some of them and it will not load (no link in page code).

    When I enable LH http2 Server Push all disabled by Gonzales files appear again in head.

    PS Dont have public dev enviroment right now, and link to production won’t help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New things to do’ is closed to new replies.