Loading of scripts
Author | Posts |
---|---|
April 14, 2014 at 2:27 pm 18737 | |
Chris Swede | Hi, currently WPUF is loading all Javascript and CSS files on all WordPress pages. Is that really necessary? Why not loading it only when a shortcode is included in the current page as you do it with the plugin scripts? There was also a forum post about it one year ago in the WordPress forum: http://wordpress.org/support/topic/plugin-wp-user-frontend-wpuf-breaks-the-themes-layout Regards Jonas |
April 14, 2014 at 5:42 pm 18749 | |
Mahi | Hello, Its been fixed long time back. Check WPUF -> Settings ->Load Scripts you can turn if off here. |
April 14, 2014 at 5:52 pm 18750 | |
Jonas | Hello, as far as I can see in the code (version 2.1.9) it was only changed for the plugin scripts, but not for the scripts of wpuf itself. The Google Maps API, frontend-forms.css and frontend-form.js are still loaded on every WordPress page independent of the “Load Scripts” option.
Regards |
July 10, 2014 at 4:20 pm 23291 | |
Daniel | I agree with this – google maps scripts are loaded on every page. Why are they not loaded inside the if-statement that controls the plugin scripts? |
July 13, 2014 at 4:46 pm 23472 | |
Sekander Badsha | Mahi have said the fix above. You can control from settings whether to load the scripts in every page or not. Please see the comment above. |
July 21, 2014 at 4:16 pm 23871 | |
Chris Swede | Hi, please put this in your theme’s
|