Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcel

    (@marceljm)

    Hi, @rieiirir.

    Please access FIFU > Status. Copy and send me the data.

    Thread Starter Hirak Kalita

    (@rieiirir)

    Featured Image from URL (FIFU):4.2.2;
    WordPress:6.1.1;
    Site:https://gamenewsmania.net;
    Theme:smart-mag (WooCommerce);
    PHP:7.4.33;
    WooCommerce:;
    Pages:7;
    Posts:365;
    Products:;
    Images without dimensions:0;
    URLs with metadata:130;
    URLs:107;
    Users:1;
    php-curl:yes;
    Max lenght:2048;
    Plugins:

    Plugin Author Marcel

    (@marceljm)

    Thanks, @rieiirir. What exactly is “FIFU wp json”?

    Plugin Author Marcel

    (@marceljm)

    Sorry, I saw the screenshot now. I got it.

    You said “PHP doing everything”, but you have other 12 JavaScripts on your homepage.

    You have 941.51 kB of scripts. FIFU script has 2.49 kB only. So please let me know why removing FIFU script would be relevant for your site.

    Thread Starter Hirak Kalita

    (@rieiirir)

    all JS are important like ADS, jQuery, Sidebar, main theme js. I am trying to improve core web vital by removing unused script. I installed FIFU for only adding featured image. So there are no sense to add unused extra line of codes even less size. When I installed FIFU at least 4 months ago, then there are no any scripts, but after update the plugin, i noticed that scripts. If you are the dev. then please set an option to remove those 2 scripts – Wp-json and jQuery. If that line are important that set them for admin only and disable from Frontend.

    • This reply was modified 1 year, 10 months ago by Hirak Kalita.
    Plugin Author Marcel

    (@marceljm)

    Hi, @rieiirir.

    all JS are important like ADS, jQuery, Sidebar, main theme js

    And I’m sure all them have unused code as well, sometimes even bigger than 2.49 KB.

    So there are no sense to add unused extra line of codes even less size.

    I agree, but looking at your site, with so many heavy scripts, it’s a contradiction.

    When I installed FIFU at least 4 months ago, then there are no any scripts

    From my memory, the JS was always there. Maybe you have installed a very old version.

    If you are the dev. then please set an option to remove those 2 scripts – Wp-json and jQuery

    The JSON you are talking about has ~200 characters. Your page has more than 100,000 characters. Also jQuery is a default WordPress library. It’s not directly added by FIFU.

    So even though what you’re asking sounds strange (when looking for your website), in good faith we will give you a solution.

    Access featured-image-from-url/includes/thumbnail.php and comment or remove the commands “wp_enqueue_script(‘fifu-image-js...” and “wp_localize_script(‘fifu-image-js“. Contact me if you don’t know how to do it.

    We’ll also analyze the possibility of removing the script (image.js) and the JSON when that’s not really necessary without creating a new option for that. I’ll let you know when that’s done or if, for some reason, that’s not possible.

    Thread Starter Hirak Kalita

    (@rieiirir)

    It’s working, thank you.

    Plugin Author Marcel

    (@marceljm)

    Hi, @rieiirir.

    In the next version, 4.2.5, the json and the image.js file (and eventually its dependency, jQuery, if that’s not being used by another component) won’t be loaded, except if you use FIFU Lazy Load, Flatsome theme or WooCommerce plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Disable Unwanted Script’ is closed to new replies.