• Resolved menathor

    (@menathor)


    Hi guys,
    ?
    Because the iframe forms are loaded as a normal wordpress page, the javascript from all the site’s plugins are also loaded. This really slows down the load time of the iframe and also the page it is embedded on.

    Also I noticed the jquery elements that are switched off in the Newsletter configuration are still loaded on the iframe forms. For example I’ve got “tabs” and “watermark” switched off, but the javascript is still loaded.
    ?
    Can you make the offsite forms load in a completely separate, empty php page? There isn’t any reason I can think of that we need other plugins and scripts to be loaded on these pages?

    https://www.ads-software.com/plugins/newsletters-lite/

Viewing 6 replies - 1 through 6 (of 6 total)
  • In addition to that mentioned by @menathor, now in version 4.5.1.1 in wp-mailinglist-plugin.php it called to become css and js files from other developers located in remote urls

    cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/js/select2.min.js
    alexgorbatchev.com/pub/sh/current/styles/shCore.css
    alexgorbatchev.com/pub/sh/current/styles/shThemeEmacs.css
    maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css
    cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-rc.2/css/select2.min.css

    The intention is to use it in the backend of the admin but stay loaded for all users in the frontend slowing download website

    Many wordpress themes already loaded font-awesome resulting in a call unnecessary.

    Please optimize this

    Plugin Author Tribulant Software

    (@contrid)

    Thank you for your messages, guys.

    Great input and feedback, excellent.

    We have already built a new interface for controlling the loading of scripts in the Newsletter plugin which looks like this: https://goo.gl/iiB3uK . It is a starting point which we’ll improve and expand in future releases to support include/exclude, categories, etc.

    Then we’re doing a similar thing for stylesheets as well.

    Thanks again, we’re on it!

    Plugin Author Tribulant Software

    (@contrid)

    We have improved the Newsletter plugin in version 4.5.4.2.

    There are panels under Newsletters > Configuration > General > Theme, Scripts & Custom CSS to pick each and every CSS/JS file that is loaded on the front-end accordingly.

    Thank you, the improvement works for me.

    Plugin Author Tribulant Software

    (@contrid)

    Thank you for the feedback, I’m glad that it works for you.

    Thread Starter menathor

    (@menathor)

    Great work guys!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Improvement suggestion: Prevent unnecessary js from loading in offsite forms’ is closed to new replies.