• This plugin adds too many inline CSS on the frontend (all pages) even with the “optimize CSS“ option activated.

    Update: Upgraded rating.
    Thank you to the PLUGIN AUTHORS for trying to create a plugin with performance features in mind. It is really important for us when working with clients that we don’t add plugins that don’t care about security, speed, simplicity and design. I have the agency license but had to create our own plugin to deal with the inline styles added to the frontend– a problem with many other plugins and scripts as well.

    • This topic was modified 1 year, 3 months ago by jumper. Reason: Upgraded rating
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Intal

    (@bfintal)

    Hello, I do not believe this warrants a 2-star rating or lower.

    Custom block attributes may produce inlined styles, when you have optimize CSS option enabled (this is enabled by default), it will combine them into one style tag. If you have a performance plugin, this can be offloaded into a separate CSS file.

    We purposefully did this so that:

    1. the CSS will load faster (1 less external file to load and no flash of unstyled blocks), and
    2. to integrate well with performance plugins and solutions
    Plugin Author Benjamin Intal

    (@bfintal)

    I’d like to add also that the inlined CSS is produced for the changes in styles on a per-block basis. And the inlined CSS is specific to only the blocks in the current page, so the CSS is most likely not reused in other pages.

    Because of this, having an inlined style tag is better than having to split it off to another remote stylesheet that your website would have to load only for that specific page – which by the way your server would have to generate this remote stylesheet whenever the CSS changes.

    Thread Starter jumper

    (@jumper)

    Thanks for the information @bfintal
    I updated my rating.

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

The topic ‘Generates Too Much Inline Style Code’ is closed to new replies.