Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Javascript Modules

From MoodleDocs
Revision as of 12:31, 10 May 2017 by Daniel Poggenpohl (talk | contribs) (Created page with "1. I have a javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to incl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1. I have a javascript module which doesn't use an external framework (e.g. jQuery) and isn't an AMD module. I may only have the minified version of the module. I want to include it in my Moodle page. How do I do that?

2. Same question as above but the module is a jQuery non-AMD module. How do I include it?

The page reads to me like there should be a way to do that... it mentions that there is a way, but only describes what to do if the JavaScript file is an AMD module.