• Resolved eek

    (@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.

    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/

Viewing 1 replies (of 1 total)
  • Plugin Author Yevhen

    (@evgenniy)

    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.