[Plugin: pb-embedFlash] waste of bandwidth? (5 posts)

  1. anatman
    Posted 7 years ago #

    I have installed version 1.5.1 of the plugin, and chosen the option NOT to load shadowbox if there's no flash content. I have also chosen the <object> option in the plugin admin page.

    When i load any page from my website, looking at the header (or analising the page with developer tools) i can see that shadowbox.css is still being loaded.

    Wouldn't that be a waste of band (and the reader's time, which is my main concern)? Shouldn't the plugin avoid loading that css?


  2. pasber
    Posted 7 years ago #

    The shadowbox.css is loaded in the header section, so before any post is in the_loop.

    As of the plugin is based on a filter parsing the_content of an blog post, it cannot know if there is any Shadowbox on a page - even if <object> is choosen as default display option, the [flash] tag value mode=3 would still be a possible way to embed flash via Shadowbox.

    So I think the "dirty" way by forcing shadowbox.css (to ensure a "mode=3" would still work) is acceptable. The file is not that big, any user should be able to load it once (should stay in cache).

  3. anatman
    Posted 7 years ago #

    Hey pasber,
    Thank you for your fast reply. And for the plugin, it is very nice.

  4. stormymondays
    Posted 7 years ago #

    I was just looking into this myself. It would be great having an option to totally disable Shadowbox, including the CSS file. I know the file is small, but many plugins want to load their own files these days, and the total number of requests really adds up.

    Thanks for your excellent plugin!

  5. pasber
    Posted 7 years ago #

    Well, you could just comment the respective line out:


    As of I'm working on version 1.6, it'll take some time to the next version.

Topic Closed

This topic has been closed to new replies.

About this Topic