Title: Javascript Variable
Last modified: August 21, 2016

---

# Javascript Variable

 *  Resolved [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-variable/)
 * Most of WordPress plugins output before the js a script tag with some variables
   in it. Your plugin doesn’t match them and doesn’t include them and so most of
   the scripts that use variables die.
 * I have made another js file named variables and copy pasted everything there.
   Now works like a charm.
 * It would be awesome to not have to upload a js file and just to manually include
   javascript in a box in the plugin, it would be awesome.
 * Also, Dean Edwards’s JavaScript Packer doesn’t work… It breaks everything and
   I don’t really know from what… Missing semicolons look like a first problem but
   can’t really see from where’s the problem.
 * Haven’t looked if your plugin uses cache but everything works fine now 🙂
 * Also, maybe use github for other people to contribute? 🙂
 * [https://wordpress.org/plugins/js-css-script-optimizer/](https://wordpress.org/plugins/js-css-script-optimizer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Yevhen](https://wordpress.org/support/users/evgenniy/)
 * (@evgenniy)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-variable/#post-4853314)
 * Hi Eek,
 * > Most of WordPress plugins output before the js a script tag with some variables
   > in it. Your plugin doesn’t match them and doesn’t include them and so most 
   > of the scripts that use variables die.
 * – Fixed. Support JavaScript L10n (wp_localize_script) added.
 * > Also, Dean Edwards’s JavaScript Packer doesn’t work… It breaks everything and
   > I don’t really know from what… Missing semicolons look like a first problem
   > but can’t really see from where’s the problem.
 * – I am going to use another packer, but other packers are spending too much resources.
 * > Also, maybe use github for other people to contribute? 🙂
 * – Necessarily, but later.
 * > It would be awesome to not have to upload a js file and just to manually include
   > javascript in a box in the plugin, it would be awesome.
 * – Maybe a bit later 🙂
 * Thanks for the review!

Viewing 1 replies (of 1 total)

The topic ‘Javascript Variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/js-css-script-optimizer_cdb920.svg)
 * [JS & CSS Script Optimizer](https://wordpress.org/plugins/js-css-script-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/js-css-script-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/js-css-script-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/js-css-script-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/js-css-script-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/js-css-script-optimizer/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 1 reply
 * 2 participants
 * Last reply from: [Yevhen](https://wordpress.org/support/users/evgenniy/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-variable/#post-4853314)
 * Status: resolved