News:

Looking for documentation? Take a look on our wiki

Main Menu

Add to cart response too long on first load

Started by Saliven007, November 05, 2019, 12:52:46 PM

Previous topic - Next topic

Saliven007

Hi,

when I open site https://www.natur-kraeuter.de for the first time and try to add to cart, it takes very long time when add to cart popup window will appear. (on mobile its about 4 - 6 seconds). It causes generally after first load of website. On next loads it is already ok. Website is optimalilzed with JCH.

Can anyobody give me some hint how to solve it? Thanks a lot.

Virtuemart 3.6.6
Joomla 3.9.12
PHP 7.2.10
APC User Cache with conservative caching.

Tomas

StefanSTS

Sorry, I cannot help you, my IP address is black listed on your site.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.


StefanSTS

Could be a lot of things:

1. That Popup for ratings that always pops up in front of my nose when I want to look at products, might interfere with some other script.

2. Too many products loaded on the page, lazy load for images should be fine, but no idea, how that interacts with the popup.

3. Maybe a minimum package for hosting, maybe faster server needed.

That might be something to start at.

Regards
Stefan
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

hellorain

Raincreatives - Virtuemart & Mobile Commerce Experts

Saliven007

Thank you for notice, its because I have tried to stop using fancybox...it is minor issue.

Now I have discovered following error in JS console: "XHR failed loading: POST "https://www.natur-kraeuter.de/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=de&Itemid=88"."

Anybody knows how to deal with this error?

Thank you

Saliven007


Studio 42

XHR failed loading: POST "https://www.natur-kraeuter.de .... is because you load a script with www. on a page loaded by https://natur-kraeuter.de it's why is important to redirect any www traffic to non www using an .htaccess rule.
And your SSL certificate is only valid in the main domain, if you try loading using https://www.natur-kraeuter.de it gives a unsecure connection.

And in your main site you have same problem here :
Access to XMLHttpRequest at 'https://widgets.shopvote.de/allvotes-v2.php?shopid=12809&type=1&src=https&lang=de'; from origin 'https://www.natur-kraeuter.de' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://natur.vyvijime.cz' that is not equal to the supplied origin.
Because you have crossorigin filters in your server.

Note that i have no slow loading problem on my add to cart test.