Read time & fluid box

  • Posted in : Readme
  • broheim
    Participant

    So, I disabled fluidbox in my functions php since I want a user to go to the image attachment when clicked and not be forced to see the image in a lightbox. Worked like a dream. I deregistered the script using…
    wp_deregister_script( 'fluidbox' );

    There was a couple unexpected results…
    1. Bad – Read times disappeared. I kind of liked that and would like it back. I am prepared to go without though.
    2. Good – My homepage size got considerable smaller. I can only assume that when it calculated the read time with the [latest_from_the_blog] shortcode, it somehow loaded the images on those pages.

    broheim
    Participant

    Is it possible to disable just the lightbox functionality?

    ahmetsali
    Keymaster

    Hi, can you provide your url?

    broheim
    Participant
    ahmetsali
    Keymaster

    Hi, again you can disable fluidbox plugin, edit js/main.js and find line : 123, and comment that line;

    $('a[rel="lightbox"], .format-gallery .gallery a, .entry-content > p a, .wp-caption a, .r-gallery-single .media-box a').fluidbox();
    

    to

    //$('a[rel="lightbox"], .format-gallery .gallery a, .entry-content > p a, .wp-caption a, .r-gallery-single .media-box a').fluidbox();
    
    broheim
    Participant

    That worked, but as you can see… fluidbox (I’m pretty sure it is the culprit) is still loading the images from linked posts when determining the “Read Time”. In this case thats about 300k on a 800k page. It will get considerably worse as I start to add additional articles.

    https://samurai.io/tpic/8782.png

    ahmetsali
    Keymaster

    @broheim

    i see the issue about read-time script add more weight to page size, i wll try to fix this. Thanks for the feedback.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register