• When the Classic Editor plugin is activated and enabled, the block-library/style.css file is still being enqueued and the Block Library inline css is still being injected into the header. If the Classic Editor is in use then there should be no need for any Block Editor styles or scripts to be needlessly added into the page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • True, there is also a big ugly error message in the Google page speed insights because of this issue. Hopefully it will be fixed soon.

    If you install the Classic Editor Addon plugin on top of it, then the block-library/style.css will no longer be enqueued.

    Thread Starter Anthony Hortin

    (@ahortin)

    @senlin That addon seems useful but it doesn’t resolve the original issue. This Classic Editor plugin needs to stop the block library styles from being enqueued in the first place.

    @ahortin the Classic Editor plugin will never do that.
    a. because it doesn’t get updated very often
    b. because it’s not in the best interest of WP.org to disable the block editor

    So you’ll have the choice to either use other tools that have been made available to you, or not.

    Complaining is futile.

    #my2cents

    Plugin Author Andrew Ozz

    (@azaozz)

    the Classic Editor plugin will never do that (disable loading of block-library/style.css)

    Correct, however these are not the reasons. The reason is that the Classic Editor plugin enables use of both editors, side by side. If you can guarantee that the block editor was never used and will never be used in the future by anybody on a site, it makes sense to stop loading that stylesheet.

    However it would be quite worse if the stylesheet is not loaded, and the block editor was used. The site will look “broken”. So Classic Editor chose to err on the safer side. Of course, everybody is free to do as they please, and can install other means of disabling loading of block-library/style.css.

    • This reply was modified 2 years, 4 months ago by Andrew Ozz.
    • This reply was modified 2 years, 4 months ago by Andrew Ozz.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Block Library CSS still being enqueued’ is closed to new replies.