Title: Please, learn how to use JavaScript
Last modified: September 20, 2016

---

# Please, learn how to use JavaScript

 *  Resolved [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * (@gidomanders)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/please-learn-how-to-use-javascript/)
 * First of all, I see woof_current_values is JSON encoded and put into a string,
   then on document load it is parsed using jQuery. JSON is short for “JavaScript
   Object Notation”, so it already is a JavaScript object, you don’t have to put
   it in a string and parse it using jQuery.
 * Second of all, I’d like to defer scripts (I am and SEO expert), though your plugin
   doesn’t allow me to and gives me errors on jQuery not being loaded. You could
   just enqueue a script that loads PHP, or even better, only load the settings 
   with PHP into a variable that you use in a separate, enqueued script. This way
   I can also decide to only load the script on certain pages, without having to
   modify your plugin.
 * If you have any questions, I’m happy to help.

The topic ‘Please, learn how to use JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/please-learn-how-to-use-javascript/)
 * Status: resolved