Replies: 0
Hello.
I wanna ask really important question – WHY SO SLOW?
Everyone who work with WP Ajax / WP Rest – can say IT IS SOO F****** SLOW!.
Then when we add Woo it is even more problematic.
I did some test and research. I can use custom file that contain base Ajax + give access to base WP functions like WPDB, logged in checks etc.
In tests it looks like (locallhost on vagrant Homestead – MacOS):
— Ajax that return 1 post —
: WPAJAX – +- 200-350ms (Custom WPDB Query)
: CUSTOM AJAX – +- 4-15ms (Custom WPDB Query)
And now we have WooCommerce – Greatest E-commerce plugin that exist right now.
Lots of features, great etc. – SUUUUPPEEERR SLOW AJAX.
Im talking about elements like update cart fragments, shippings, add to cart, etc all things on FRONT-END.
Ofc it isn’t problem at beginning. but when shop exist some time and has lot of orders/users/Products. I was speeding up once page that use Woo + lot of metas.
I created hook that combined all products + meta etc to separate DB table, and now filter loading page drop from +- 10-20sec to 0.04s – grabbing all (over 2k products with over 10 extra metas + pricing based on roles). Ofc. there is still issues of my solution (every update of product – rebuild that table, etc)
WHY SO SLOW?
Why you are don’t create any custom file ajax for Woo Endpoints that can handle all those things on frontend like add to cart, remove from cart, update cart (refreshfragments) update shippings etc? It shouldn’t bee soo hard?
I can create some of those but but but, WOO has a lot of things that I have no idea about. So at the end – I CANT (And Im not so good at programming in objects and SQL’s ;P ). But for those actions, why you need to call super-heavy-slow WP Ajax that destroy user experience.
Why it must be like that ?
Can anyone answer me?,
I really read tons of articles, everyone complain about that speed.
Only one solution is deque scripts/styles that are not used on some pages etc. – crappy solution.
Thanks if someone read it 🙂
BTW: We are almost in 2018 – people want page to work really smooth.
I think ppl will leave Woo shops if it still will be like that.
(Linked page is just my testing ground)
-
This topic was modified 30 minutes ago by Isu.
-
This topic was modified 29 minutes ago by Isu.