News:

Looking for documentation? Take a look on our wiki

Main Menu

Extremely slow site

Started by Xris75, December 11, 2013, 16:35:29 PM

Previous topic - Next topic

Xris75

Hi,

I am running JM 2.5.14 and VM 2.22.c.

Spent hours and days to build my website with great help of the community btw...
but now the site take ages to load and ruins my efforts.

www.men-esthetics.com

Here are some specifications
- I have in my main menu, VM categories, the site is slow on every category
=> I have seen this is what makes the site so slow in an older version but is it still the case in 2.22.C?

- 5 categories
- 400 products max
- 7 customfields linked to a parent customfield with VM2 mutiple customfield plugin
- jch installed
- SEF ON
- admin tools but the optimisation SEO OFF
- progressive cache on 800 installed which speeds up the site after load but does not solution the loading
- Gzip compression ON

- server OVH

Thanks for your help !

Christophe


[attachment cleanup by admin]

GJC Web Design

just a quick look but a couple of things
D/Ling jquery 4 times!!! see screen

Google pagespeed complains

755.4KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

    http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js (171.2KiB)
    https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js (86.0KiB)
    http://www.men-esthetics.com/media/system/js/mootools-core.js (85.8KiB)
    http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js (82.6KiB)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/jquery.min.js (82.4KiB)
    https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js (77.4KiB)
    http://www.men-esthetics.com/plugins/system/jcemediabox/js/jcemediabox.js?version=1111 (46.9KiB)
    http://static.ak.facebook.com/connect/xd_arbiter.php?version=28 (21.5KiB of inline JavaScript)
    https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=28 (21.5KiB of inline JavaScript)
    http://www.men-esthetics.com/components/com_jfbconnect/includes/jfbconnect.js?v=520 (17.7KiB)
    http://www.men-esthetics.com/modules/mod_vm_flexible_zoom_effect/media/jquery.colorbox.js (14.7KiB)
    http://www.men-esthetics.com/modules/mod_vm_flexible_zoom_effect/media/flexible-zoomPatch.min.js (9.5KiB)
    http://www.men-esthetics.com/modules/mod_virtuemart_param_filter/assets/js.js (9.1KiB)
    http://www.men-esthetics.com/media/system/js/modal.js (8.7KiB)
    http://www.men-esthetics.com/media/com_acymailing/js/acymailing_module.js?v=434 (6.9KiB)
    http://www.men-esthetics.com/media/system/js/core.js (4.1KiB)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/vmprices.js (2.9KiB)
    http://www.men-esthetics.com/parfums/frais-a-legers-business (2.3KiB of inline JavaScript)
    http://www.men-esthetics.com/modules/mod_vm_flexible_zoom_effect/media/additional-slider.js (2.1KiB)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/vmsite.js (1.9KiB)
    http://www.men-esthetics.com/modules/mod_virtuemart_param_filter/ajax.php?search=true&virtuemart_category_id=0?option=com_virtuemart&search=true&view=category&mcf_id=224&cids%5B%5D=15&ac=15&sc=1&ch=0&preload_virtuemart_category_id=15&d=2&mcur=1&pl=&pr=&custom_parent_id=6&limitstart=0&limit=9&mcf_ajax=1&virtuemart_category_id=15 (33B of inline JavaScript)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/jquery.noConflict.js (20B)

755kb of js is a lot!

see also http://forum.virtuemart.net/index.php?topic=120309.msg409850#msg409850

will solve

The following cacheable resources have a short freshness lifetime. Specify an expiry of at least one week in the future for the following resources:
then a list of all the files

plus as always - u get what u pay for - I have had some of my clients that were on ovh.. wouldn't touch it with a barge pole... they are now off it and happy..

vm versions will have null effect on speed..

as a rule of thumb - try a simple joomla article page to really measure the speed first -

couldn't call http://www.men-esthetics.com/ADMI/cgv.html lightning fast  :(

it still has 0.5Mb of js to parse
479.5KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Xris75

Hi GJC, (can't find a first name on your site ;-)

I would like first to thanks you very much for having taken this time to help me.

I have tried each of your recommandation; here is the feedback
- FYI the link http://farhadi.ir/projects/smartoptimizer/ gives a download with a modification of the .htaccess file. Once done it broke the site.
- gone to JED extension to get it and it worked but with no significant change in the speed vs jch cache but thanks for the tip anyway

In jch plugin I have activated the javascript defer option thanks to you.

After having cleared the cache. I still have very low timing of loading; (see files image1 & 2). Not getting it.
The OVH script analysis shows a big amount of RAM used and number of files called but my site is nothing special I think and quite light no ?


- Do you see any reason why the hereunder js with different version get called. Is it normal?
I have put the google analytics code at the bottom before </body>

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js (171.2KiB)
https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js (86.0KiB)
http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js (82.6KiB)
https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js (77.4KiB)


Sorry but I didn't understood to which resources you were refering.
Quote
The following cacheable resources have a short freshness lifetime. Specify an expiry of at least one week in the future for the following resources:
then a list of all the files

are you talking of those?

Quotehttp://ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js (171.2KiB)
    https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js (86.0KiB)
    http://www.men-esthetics.com/media/system/js/mootools-core.js (85.8KiB)
    http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js (82.6KiB)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/jquery.min.js (82.4KiB)
    https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js (77.4KiB)
    http://www.men-esthetics.com/plugins/system/jcemediabox/js/jcemediabox.js?version=1111 (46.9KiB)
    http://static.ak.facebook.com/connect/xd_arbiter.php?version=28 (21.5KiB of inline JavaScript)
    https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=28 (21.5KiB of inline JavaScript)
    http://www.men-esthetics.com/components/com_jfbconnect/includes/jfbconnect.js?v=520 (17.7KiB)
    http://www.men-esthetics.com/modules/mod_vm_flexible_zoom_effect/media/jquery.colorbox.js (14.7KiB)
    http://www.men-esthetics.com/modules/mod_vm_flexible_zoom_effect/media/flexible-zoomPatch.min.js (9.5KiB)
    http://www.men-esthetics.com/modules/mod_virtuemart_param_filter/assets/js.js (9.1KiB)
    http://www.men-esthetics.com/media/system/js/modal.js (8.7KiB)
    http://www.men-esthetics.com/media/com_acymailing/js/acymailing_module.js?v=434 (6.9KiB)
    http://www.men-esthetics.com/media/system/js/core.js (4.1KiB)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/vmprices.js (2.9KiB)
    http://www.men-esthetics.com/parfums/frais-a-legers-business (2.3KiB of inline JavaScript)
    http://www.men-esthetics.com/modules/mod_vm_flexible_zoom_effect/media/additional-slider.js (2.1KiB)
    http://www.men-esthetics.com/components/com_virtuemart/assets/js/vmsite.js (1.9KiB)


Thanks again for your help I really appreciate it! Still no sales ;-((

Best

Christophe




[attachment cleanup by admin]

GJC Web Design

Hi Chris,

smartopt has made a difference  - Google only complains about these 2 files now (nothing you can do about them - they are Facebook)


Leverage browser caching
The following cacheable resources have a short freshness lifetime. Specify an expiry of at least one week in the future for the following resources:

    http://connect.facebook.net/fr_FR/all.js (20 minutes)
    http://www.google-analytics.com/ga.js (12 hours)


Yesterday was the long list of all files

Google speed improved to 73 - (was in the 60's last nite)

http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.men-esthetics.com%2F&tab=desktop

You have to eliminate all the duplicated jquery calls - only one is needed.. it is a waste of bandwidth

as the are now bundled I can't see the individual files

the jch_optimize is working - all js is zipped and bundled into one but it isn't being loaded last -

all these things need experimenting with - there is no hard and fast rule.. at ever step check  the cart and checkout - a lot of these tools can break it..

Once the initial page has loaded the smartopt and jch are doing there stuff - the refresh time is acceptable (1.5sec to render)  and Google reports a 90/100 page speed (very good!)

Still would find a decent caring host though.. ;)

john
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Xris75

Hi John,

Thanks again for you help; this is quite precious ;)

QuoteYou have to eliminate all the duplicated jquery calls - only one is needed.. it is a waste of bandwidth
I have turned off Jch can you check if it's how it should be?
If not how can I do it?

QuoteThe following cacheable resources have a short freshness lifetime. Specify an expiry of at least one week in the future for the following resources:

    http://connect.facebook.net/fr_FR/all.js (20 minutes)
    http://www.google-analytics.com/ga.js (12 hours)


I tried to do that in htaccess but doesn't seem to work, :

# 3 hours of cache
<FilesMatch "\.(txt|xml|js|css)$">
Header set Cache-Control "max-age=604800"


What should be the specific code for these two functions in order to cache them long-time; cannot find anything on the web?

And fianlly, I have "56 static components without a far-future expiration date" (see enclosed) but I don't get it as I have these lines in htaccess for jpeg:

<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"

Thanks a lot for your help!

Xris

[attachment cleanup by admin]