Is there a better way to access transients using javascript
I've been searching around the web trying to find a better way to use WordPress transients with javascript. Currently I am using admin-Ajax to run a php function that retrieves the transient and returns it. This works fine but I'm curios to know if there is a more effective way of accessing that data without the overhead of using ajax and php.
I know I could probably do this using wp_localize_script()
but I'm not sure if that method is any better that my current solution. Hopefully there is an expert out there that can help me with this.
Topic wp-localize-script transient ajax Wordpress javascript
Category Web