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

Viewing 2 replies - 1 through 2 (of 2 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this review.