Skip to main content

Timeline for AJAX and do_shortcode

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Nov 15, 2015 at 0:25 vote accept user2581369
Nov 15, 2015 at 0:25 comment added user2581369 @Mark, thank you for all the advice. I'll try to optimize my solution.
Nov 12, 2015 at 20:26 comment added Mark Kaplun It is hard to give general advice here. just remember that even with caching the ajax every page load will generate two requests instead of one. If you can cache the ajax response in nginx/varnish/cloudflare/whatever then it is not a big things, but if it gets to PHP level the cost is high from just spinning up php and bootstrapping wordpress.
Nov 12, 2015 at 19:13 comment added user2581369 Thanks Mark for your answer. I'm looking into other alternatives. Regarding your last point, would it help to cache the AJAX requests? Or do you see a different problem?
Nov 12, 2015 at 16:56 history answered Mark Kaplun CC BY-SA 3.0