JS SDK collection.fetchWithProducts response very slow ! between 5 and 9secs per request

Highlighted
New Member
3 0 0

Hi,

I'm using the js-buy-sdk and everything seemed almost fine (the docs are quite not clear), but the queries are very very very slow, although my home connexion is very fast.

 

How can this be fixed ?

 

I'm going to do an SPA, so all loading is done via ajax, no users will wait for 8 secs to see products, this will increase the rebound rate...

 

image.png

 

image.png

 

image.png

image.png

0 Likes
Shopify Staff
Shopify Staff
1555 79 241

I'm not sure there's much you can do to improve performance of the queries since it looks like they receive a fixed maximum amount of data (as in it might be better if you could make smaller requests at a time). Have you made an issue in the public repository? I'd personally start there. I'm not seeing any solutions in documentation either.

0 Likes
New Member
3 0 0

It's not really an issue to be put in the github repo as this is directly linked to server response and not a bug code itself.

 

Here's another try with only one request to collection containing 12 products (that's pretty a standard number of products), but it took 4 seconds to show...

 

image.png

There seem to be something bad on your server's end... How can I do ? I took shopify just to be able to use your api, I could have gone with Woocommerce but I trusted shopify to have a solid infrastructure.

 

What are my options here except closing my shopify account and using my own server with woocommerce ?

0 Likes
New Member
3 0 0

still no answer here... No answer on github too https://github.com/Shopify/js-buy-sdk/issues/710 what is going on with you guys sdk ?

0 Likes