• Hi.

    I’m using your plugin and works pretty well. But I notice that W3 Total Cache keeps the min.css separated and not combined with the other CSS files. Since the a3 CSS is pretty small, it’s not worth having that extra HTTP request.

    So my question/request is can you make sure you use the proper WP API to load it so it can be combined or inline it in HEAD.

    I can provide a website if you need to, but this is pretty straightforward with W3TC set to combine the CSS files; it happens in all my sites I use those 2 plugins.

    https://ww.wp.xz.cn/plugins/a3-lazy-load/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter XhmikosR

    (@xhmikosr)

    After looking into this closer, the cause is the media part you use for the linked CSS (only screen).

    So there are 2 possible solutions:

    1. inline the CSS
    2. put the CSS code into a @media only screen {} and use media="all" in the link tag; this will allow optimizing plugins to bundle the script

    Francesco

    (@fcolombo)

    I second the question.

    Is it possible to deregister / dequeue the 2 CSS files generated by the plugin, and inline the CSS instead?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Question about the included CSS’ is closed to new replies.