Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Joyn › How to defer loading of certain CSS/JS to only load on required pages?
New Landing › How can we help? › Themeforest Theme Support › Joyn › How to defer loading of certain CSS/JS to only load on required pages?
- This topic has 15 replies, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Joyn
-
December 22, 2014 at 7:10 am #137066
Hi, to decrease load-speed on the homepage and other pages, how can we stop CSS files and JS files loading, unless they are required for us on that specific page. ie:
1) defer loading go_pricing_styles.css?ver=2.4.2 to only load on pages using gopricing?
2) defer loading woocommerce.css?ver=2.2.8 to only load on woocommerce element pages
3) and sf-woocommerce.css
4) how to remove http://fonts.googleapis.com/css?family=Lato as no longer a used font
5) and contact form code jquery.form.min.js?ver=3.51.0-2014.06.20
6) and jquery.flexslider-min.js if not actually using the flexslider plugin
7) and ilightbox.min.js as not using it
8) And jquery.infinitescroll.min.js as not using infinitescroll features
9) and removing many http requests showing data:font/opentype;base64,d09GRgABAA etcThanks!
December 23, 2014 at 1:40 am #137392Seem to also be many things loading on home and other pages, that are only needed on specific pages ie… google maps API…
https://developers.google.com/speed/pagespeed/insights/?url=hoteliyo.com&tab=desktop
December 23, 2014 at 4:53 am #137398This reply has been marked as private.December 23, 2014 at 6:44 am #137414Hi,
Please use better wordpress minify plugin.
Thanks
MohammadDecember 23, 2014 at 6:56 am #137416This reply has been marked as private.December 23, 2014 at 7:05 am #137419Hi,
You may also try these plugins https://wordpress.org/plugins/tags/minify.
Thanks
MohammadDecember 23, 2014 at 10:16 am #137479This reply has been marked as private.December 23, 2014 at 12:29 pm #137530Hi,
1- Please go to Admin -> Theme Options -> Performance Options -> Load pre-minified scripts – Enable this option to load pre-minified scripts, without the need for any plugins.2- Google fonts only load when you are logged in wordpress admin dashboard. Its loaded by any plugin.
Thanks
MohammadDecember 23, 2014 at 9:08 pm #137625This reply has been marked as private.December 23, 2014 at 9:13 pm #137626This reply has been marked as private.December 24, 2014 at 2:14 am #137643This reply has been marked as private.December 26, 2014 at 4:45 am #137789Hi,
We are not loading any gopricing. On demand feature of js files loading is not currently. We will consider it in future upgrade.You can remove google fonts through this script. Just paste this script at functions.php of child theme.
function sf_enqueue_styles_new(){ wp_deregister_style('redux-google-fonts'); wp_dequeue_style( 'redux-google-fonts' ); } add_action('wp_enqueue_scripts', 'sf_enqueue_styles_new', 111);
Thanks
MohammadDecember 26, 2014 at 10:45 am #137826This reply has been marked as private.December 26, 2014 at 11:08 am #137834Hi,
You installed Gopricing plugin. So please contact at plugin developer about this issue.
Thanks
MohammadDecember 26, 2014 at 11:10 am #137836This reply has been marked as private. -
Posted in: Joyn
You must be logged in and have valid license to reply to this topic.