Site loading Time

Posted in: Newspaper
Post count: 31

Hi

The images in the site are not loading simultaneously with the content, All the images are loading after some time which makes the user wait for longer time.

could you please solve this. Any better solutions are appreciated.

And here is our URL
http://goo.gl/TYJO0E

Thanks

Post count: 22421

Hello,
Your images are not loading at all at the moment because you have a js error. Please disable all plugins except visual composer and clear your cache (and reset cdn if you use it). Then you need to identify the plugin that causes the error and remove/replace it.
If you wan to increase loading times, you will have to optimize your page speed. Please follow this guide to do it: https://forum.tagdiv.com/how-to-make-the-site-faster/
I hope this helps.
Thank you!

Post count: 31

Hi

Thank you for the reply, we deactivated w3 Total cache plugin, re-activated it, emptied cache, disabled & re-enabled minification (including Java Script) to see if that was causing any js errors. Now it seems images are loading again (I hope its not a temporary effect & they dont go back to not loading at all).

Would really appreciate if you take a quick look to see if you still see any js errors

Also, since images are now appearing, please see if you can help with my original query about all images loading together after a noticeable delay.

Thanks

Post count: 22421

Hi,
Unfortunately the js error is still there. I suspect the minification. Please only use cloudflare to minify your js and css otherwise errors such as this could occur. https://forum.tagdiv.com/cloudflare-cdn/
Also you should switch from w3 total cache to wp super cache as this is the recommended plugin.
Thanks.

Post count: 31

Hi Bogdan,

Thanks for your suggestions. We’re now using Super Cache & Cloudflare but still far from a decent load speed. I’m trying to add the below to the bottom of the file td-speed-booster.php but getting the error “Parse error: syntax error, unexpected ”); ‘ (T_CONSTANT_ENCAPSED_STRING)”. The position I tried to add this to was the line just below the line ‘new td_speed_booster();’

Please advise how to add the below to td-speed-booster.php without the error…

$this->move_js_to_footer(‘comment-reply’);
$this->move_js_to_footer(‘td-site-min’);
$this->move_js_to_footer(‘jquery-ui-widget’);
$this->move_js_to_footer(‘jquery-effects-shake’);
$this->move_js_to_footer(‘revmin’);
$this->move_js_to_footer(‘tp-tools’);
$this->move_js_to_footer(‘gmap_form’);
$this->move_js_to_footer(‘cfm_main_front_end’);
$this->move_js_to_footer(‘gmap_form_api’);
$this->move_js_to_footer(‘jquery’);

$this->move_style_to_footer(‘td-theme’);
$this->move_style_to_footer(‘js_composer_front’);
$this->move_style_to_footer(‘google_font_open_sans’);
$this->move_style_to_footer(‘google_font_roboto’);
$this->move_style_to_footer(‘google-fonts-style’);
$this->move_style_to_footer(‘rs-plugin-settings’);
$this->move_style_to_footer(‘contact_form_maker_frontend’);
$this->move_style_to_footer(‘jquery-ui’);

Regards,
Gaurav

Post count: 22421

Hello,
This method is for advanced users and it involves a bit of coding/php know-how. Please use the css and js render blocks in their specific functions in the file.
For example the js must be placed here: http://screencast.com/t/oWTDdQhN6
And for css you need to place the code here: http://screencast.com/t/Sdn2HOsTEmMS (for the css you need to add the “_queue”part to your code as it has been changed in the latest version of speedbooster)
I hope this helps.

  • This reply was modified 10 years by Bogdan B..
Post count: 31

Thanks Bogdan! I’ve been able to add it but just making sure that the syntax is $this->move_style_to_footer_queue(‘bp-legacy-css’) & not $this->move_style_to_footer(‘bp-legacy-css’) which is what the tutorial mentions (Tutorial doesn’t mention ‘footer_queue’, but ‘queue’).

Anyway, my file was saved. Do I have to clear cache before checking in Pagespeed (because I just checked & the performance has actually dropped).

Gaurav

Post count: 22421

Hi,
Yes you have to clear the cache and reset cdn if you use it and then check page speed insights again. The correct syntax is the one you can already see in your file. simply copy and paste another similar piece of code and replace the id and that’s it.
The correct syntax is this one:
$this->move_js_to_footer('FILE-ID');
$this->move_style_to_footer_queue('FILE-ID');

Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.