News:

Support the VirtueMart project and become a member

Main Menu

ajax add to cart popup speed

Started by scorp2000, September 30, 2012, 14:58:31 PM

Previous topic - Next topic

scorp2000

hi

is there way to speed up ajax add to cart.. when user click add to cart...a pop up display...
and product added to cart... while clicking product take 3 to 4 second then added to cart ...

any body have any idea how to speedup this process..

Regards

bytelord

Hello,

What's your joomla, vm and PHP version? I think this have not to do with joomla or vm, may be is a PHP issue or very low performance on your server (is a server or localhost on your PC?)
add to cart-display popup is pretty fast (some ms). Is there any third party plugins or modules that loads jquery again or any other scripts that delay the initial function? You can use firebug to examine it.

Can you provide a live url to test it?

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

scorp2000

#2
Quote from: bytelord on September 30, 2012, 15:25:33 PM
Hello,

What's your joomla, vm and PHP version? I think this have not to do with joomla or vm, may be is a PHP issue or very low performance on your server (is a server or localhost on your PC?)
add to cart-display popup is pretty fast (some ms). Is there any third party plugins or modules that loads jquery again or any other scripts that delay the initial function? You can use firebug to examine it.

Can you provide a live url to test it?

Regards

thank for ur kind reply

actually i am in a different situation... i have customize my site as per requirement
i hide popup box when add to cart clicked..

actually i dont need popup ...  but i think popup take time.. when we click add to cart button..plz guide me if u find any info..

joomla 2.5.7 VM 2.0.10  php 5.2

here is link
http://budgetcomputers.biz/bcbiz/


Thanks & Regards

bytelord

#3
Hello,

I think your site is pretty fast, i didn't see any issues. You have disable popup but the cart updates normally ...
only some small errors with your ja template ... do don't need to load those files if you have delete them.

"NetworkError: 404 Not Found - http://budgetcomputers.biz/bcbiz/templates/ja_t3_blank/css/editor.css"
"NetworkError: 404 Not Found - http://budgetcomputers.biz/bcbiz/templates/ja_t3_blank/css/dropdown.menu.css"
"NetworkError: 404 Not Found - http://budgetcomputers.biz/bcbiz/templates/ja_t3_blank/images/typography/arrow.png"

And here are the response times when adding multiply thing on the cart (each line for add to cart function)

GET http://budgetcomputers.biz/bcbiz/index.php?optio...mart_category_id%255B%255D%3D348&_=1349122764717 200 OK 441ms   
GET http://budgetcomputers.biz/bcbiz/index.php?optio...iew=cart&task=viewJS&format=json&_=1349122765276 200 OK 758ms   
GET http://budgetcomputers.biz/bcbiz/index.php?optio...mart_category_id%255B%255D%3D413&_=1349122769813 200 OK    431ms   


Everything seems fine. The only observation i could make above that errors is that you are using PHP 2 ... you could upgrade to PHP 5.3.x ... But test it first on a localhost with xampp or wamp to test for issues. A last thing is that the whole design is a little bit "heavy".

At the end everything seems to work great and normal but seems little bit heavy as i said (t3 framework, javascript, css, php 5.2).

Some proposes to increase your site speed:

1. Use cache technics for the rest of the site and exclude vm or vm cart, etc
2. Use JCH Optimize for example to compress your js, css files, etc
3. lighter design maybe
5. upgrade your PHP
6. faster server?? (may be)...

btw, Nice site

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

scorp2000

bytelord  thanks for your time and grt help... and very useful suggestions

i am following ur tips and try to optimization

i have one last question ...when we click add to cart button product added to mini cart... and if you notice during add to cart processes take approx 3 to 4 second.. i want  it will take 1 second like i saw some other websites

Best Regards

bytelord

#5
Hello,

As i post above they are ms not seconds ... 400ms is 0,4 second or 2/5 of the second. I don't know why in your computer (may be) shows in 3 to 4 s ... could be a server issue not vm ... check with firebug profile enabled...

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

scorp2000

Thanks for everything..

i try to configure... maybe its server issue

Thanks

bytelord

Or our PC issue, check it with firebug and profile enabled to see the responds times. Also you could use google webmaster tools to check site speed. Last try your site on a localhost installation using xampp (with php 5.3.x).

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!