• Hello

    thank you for this amazing plugin!

    I love it, but it loads the main script that depends on the jquery library in the header.

    You don’t need your script in the header.

    If in the main file sendiblue.php of your plugin I replace your line of code

    wp_enqueue_script( 'sib-front-js', self::$plugin_url . '/js/mailin-front.js', array( 'jquery' ), filemtime( self::$plugin_dir . '/js/mailin-front.js' ),false);

    with:

    wp_enqueue_script( 'sib-front-js', self::$plugin_url . '/js/mailin-front.js', array( 'jquery' ), filemtime( self::$plugin_dir . '/js/mailin-front.js' ), true);

    all still work, jquery and your script are moved to the footer, and the performance of the website is a lot better.

    The plugin is very nice and useful, but until it has this problem related to the performance, I would not suggest it to other users.
    In my case I will solve it in the final speed optimization, it’s just a suggestion for improving your plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dulé

    (@lephenixdelafamille)

    Hi @giuse

    I shared your feedback with our tech team and they’ll have a closer look.
    Thank you for your suggestions, and we’ll keep working to pass the muster soon.

    Have a great rest of the week!

    Best Regards,
    Dulé Stojnic

    This is really bad, I try my best to make the site light, and this plugin loads a lot of scripts even though I’m not using the forms.

    Developers could create a simple function to disable this function that launches so many scripts in the header.

    Currently I only use the SMTP and SYNC service, not needing any of the built-in forms and scripts.

    Thanks!

    Thread Starter Jose

    (@giuse)

    @ribeiroeder

    If you want you can disable it on the pages where you don’t have any form with Freesoul Deactivate Plugins.

    Then where you don’t have the form it will not load anything because the plugin will not be active on those pages.

    Doing so, you will have only the pages that include the form that will need further attention, not all pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘It loads jquery in the header’ is closed to new replies.