Post by hermanwong416 » Mon Mar 26, 2012 11:09 pm

Hi All,

My website is www.casesmarket.com
the overall website, picutre loading speed is ok for me.
but the only step is very very slow (~10-20sec) to load.
It is when clicking "add to cart" button, it takes 10-20sec to show up to the Basket Page.

I don't know how to fix it and no idea....
is there anybody can help me?

Newbie

Posts

Joined
Fri Jul 16, 2010 5:09 pm

Post by tdaubs » Tue Mar 27, 2012 3:26 am

On the cart page you have javascript outside the closing html tag. Move it inside.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by hermanwong416 » Tue Mar 27, 2012 8:59 am

Hi,
Thanks for your reply.
Can you explain it deeply, because i am not really so strong in programming.
where is the cart page located? which tap / javascript i should move?
Looking to you reply..

Newbie

Posts

Joined
Fri Jul 16, 2010 5:09 pm

Post by tdaubs » Tue Mar 27, 2012 9:11 am

Once you finally land on the cart page, the javascript code at the very bottom (if you view source) is outside the closing html tag.

Code: Select all

<script type="text/javascript">
$("input[name*='quantity']").change(function() {
    $('#cart').submit();
});
</script>
I'm doubting that is causing the slowness now because I can visit the cart page when not adding something to the cart very quickly. I would still fix it though.

http://www.casesmarket.com/index.php?ro ... ckout/cart

Loads quickly. So there is something causing the slowness when adding something to the cart.

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California

Post by hermanwong416 » Tue Mar 27, 2012 12:02 pm

Yes. The overall website is quicky. Except the "Add to Cart" Step.
Do you have any solutions? Please help.....

Newbie

Posts

Joined
Fri Jul 16, 2010 5:09 pm

Post by inspirio » Tue Mar 27, 2012 3:09 pm

See in http://gtmetrix.com/ where is the problem..

http://gtmetrix.com/reports/www.casesma ... eJ8h1M/pdf

Page Speed Grade:
(0%) 73% C

YSlow Grade:
(78%) 75%

Image


User avatar
New member

Posts

Joined
Fri Feb 17, 2012 9:11 pm

Post by hermanwong416 » Tue Mar 27, 2012 9:55 pm

Hello,
i have found something it maybe useful for all you to help to slove my problems.
http://www.casesmarket.com/Brand-iphone ... r-iphone4S

This link, if i click "add to cart" , it still take very long time to load to next page (basket page)
however, if i click the "cart" logo in the "related product" session, the basket page load up very fast.

Newbie

Posts

Joined
Fri Jul 16, 2010 5:09 pm

Post by tdaubs » Wed Mar 28, 2012 12:48 am

The site is loading quickly for me now. No slow down. What fix did you apply?

Image
Opencart Support . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California
Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 22 guests