I wish to load a JavaScript file locally, this way:
<html> <head> </head> <body> <iframe id="myIframe" src="https://example.com/x/y.php" width="100%" frameBorder="0" id="prcf_iframe"></iframe> <script> mw.loader.load("/iframe-resizer/js/iframeResizer.contentWindow.min.js"); iFrameResize({ log: true }, '#myIframe') </script> </body> </html>
Is it okay to use mw.loader.load outside of MediaWiki:Common.js?