Support » Plugin: Advanced Bootstrap Blocks » Plugin is loading 6 CSS files in the frontend

  • Resolved Bene

    (@bene-2)


    Hi there again!

    While checking the performance of my website, I realised that these files will be loaded in the frontend as soon the plugin is activated:

    <link rel='stylesheet' id='wp-components-css'  href='http://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='http://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='http://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='http://localhost/project/wp-includes/css/dist/editor/style.min.css?ver=5.3.2' type='text/css' media='all' />	
    
    <link rel='stylesheet' id='advanced-bootstrap-blocks-style-css-css'  href='http://localhost/project/wp-content/plugins/advanced-bootstrap-blocks/dist/blocks.style.build.css' type='text/css' media='all' />

    Shouldn’t these files only be loaded in the backend? Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author helpful.dev

    (@helpfuldev)

    @-bene- you are correct. The styles applied to the front-end here were intended only for the editor. Adding the single advanced-bootstrap-blocks stylesheet also enqueued the other styles from WP core.

    I fixed this in my local copy of the plugin and will publish the change this weekend along with a batch of other improvements. Any other nagging issues I can look into for you during this sprint?

    • This reply was modified 7 months, 1 week ago by helpful.dev. Reason: readability

    @helpfuldev Awesome to hear! One more question: When adding a background-image to a container, it also appears in the backend so the text inside of it is a bit unreadable. I don’t know if this is a default gutenberg feature or coming from your plugin. Is there a way to get rid of this?

    Thanks again for all of your support!

    • This reply was modified 7 months, 1 week ago by Bene.
    Bene

    (@bene-2)

    @helpfuldev Since the website I am working on is going to be live in a few days, any chance on an update? Or can you tell me how to dequeue the CSS files manually? Thanks in advance and sorry for my impatience!

    Plugin Author helpful.dev

    (@helpfuldev)

    @-bene- hopefully I didn’t hold you up (life gets in the way sometimes) but the latest release (1.1.10) should resolve the issue for you. Let me know if it gives you any trouble.

    I did start working on a few other enhancements and am thinking about how to improve the background-image issue you noted–but hit a wall with a difficult programming problem. I’m tabling these efforts to focus on other things for the time being, but am happy to have circled back and seen your response here– wordpress.org is still only sending notifications sporadically, in spite of checking the ‘follow up replies’ box. =\

    FYI my gut feeling is the most appropriate solution improvement to the background-image experience will be to circle back to your original feature request: adding background/text color controls to the blocks so you can set a semi-transparent overlay on top of the background-image.

    Thanks for your ongoing patience/feedback!

    Right on time, thanks a lot! Everything is working now and I am happy.

    At the moment I set background-images in the container settings, add a class and then add an overlay with CSS. I prefer working with classes anyway so I’m totally fine with the current approach.

    Depending on the background-image and my pseudo CSS-element not loading into the backend, the text is just sometimes hard to read but is really not a big deal for me.

    So you can mark this one as resolved. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin is loading 6 CSS files in the frontend’ is closed to new replies.