• Resolved FriendlyWP

    (@mmcginnis)


    When I have Embedpress active, all 6 of the editor stylesheets are loaded on the front end of my website. Is this necessary? It’s slowing down my site. These are the stylesheets I mean:

    <link rel='stylesheet' id='wp-components-css'  href='https://localhost/project/wp-includes/css/dist/components/style.min.css?ver=5.3.2' type='text/css' media='all' />	
    
    <link rel='stylesheet' id='wp-editor-font-css'  href='https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i&ver=5.3.2' type='text/css' media='all' />	
    
    <link rel='stylesheet' id='wp-block-editor-css'  href='https://localhost/project/wp-includes/css/dist/block-editor/style.min.css?ver=5.3.2' type='text/css' media='all' />	
    
    <link rel='stylesheet' id='wp-nux-css'  href='https://localhost/project/wp-includes/css/dist/nux/style.min.css?ver=5.3.2' type='text/css' media='all' />	
    
    <link rel='stylesheet' id='wp-editor-css'  href='https://localhost/project/wp-includes/css/dist/editor/style.min.css?ver=5.3.2' type='text/css' media='all' />	
    
    <link rel='stylesheet' id='embedpress_blocks-cgb-style-css-css'  href='https://localhost/project/wp-content/plugins/embedpress/Gutenberg/dist/blocks.style.build.css?ver=5.5.1' type='text/css' media='all' />
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nahid Hasan

    (@tushar284)

    Hi @mmcginnis,

    Hope you’re doing great today !

    These stylesheets are dependencies for Gutenberg block actually.

    Anyways, we are adding widgets control option in our coming version so you can disable your unused widgets. Hope that will resolve this issue.

    Thank you for your patience.

    Thread Starter FriendlyWP

    (@mmcginnis)

    I know they’re dependencies in the post-editor for Gutenberg, but I don’t believe they are required on the front-end of the site (or all block plugins would be including them, not just yours). There are other plugins/places where this has been an issue (see https://github.com/ahmadawais/create-guten-block/issues/210#issuecomment-584190287 for instance). I think you only need to enqueue them if is_admin() and not on the front-end.

    Can you confirm you really need these on the front-end of the site?

    Plugin Support Nahid Hasan

    (@tushar284)

    Hi @mmcginnis

    I’ve forwarded your message to our devs team and they find it very helpful. So, hopefully we can move these stylesheets to admin end from our next release.

    Thank you so much for your suggestion. We really appreciated that.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘6 additional stylesheets loaded in front end’ is closed to new replies.