Topic on Project:Support desk

How to run a JavaScript file from Common.js?

3
49.230.25.222 (talkcontribs)

I want to keep my MediaWiki:Common.js file minimal as possible so instead writing JavaScript directly in it I want to call a JavaScript custom file such as example.com/my_custom_javascript.js from inside it.

How could I run that file ("include" that file) from MediaWiki:Common.js?

Bawolff (talkcontribs)
49.230.26.48 (talkcontribs)

Thanks Bawolff, while I do hope to learn of a general JavaScript way (independent of MediaWiki) at least for now that's fine for me.

Reply to "How to run a JavaScript file from Common.js?"