Hey guys!
Google has its own loader called jsapi which typically is included as following: <script type="text/javascript" src="http://www.google.com/jsapi"></script>
How can I include it using $wgResourceModules to use in my extension?
----- Yury Katkov, WikiVote
Well, speaking more broadly, how can I include any remote javascript with ResourceLoader? ----- Yury Katkov, WikiVote
On Fri, Oct 11, 2013 at 8:21 PM, Yury Katkov katkov.juriy@gmail.com wrote:
Hey guys!
Google has its own loader called jsapi which typically is included as following:
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
How can I include it using $wgResourceModules to use in my extension?
Yury Katkov, WikiVote
On Fri, Oct 11, 2013 at 1:32 PM, Yury Katkov katkov.juriy@gmail.com wrote:
Well, speaking more broadly, how can I include any remote javascript with ResourceLoader?
Somebody can correct me if this is wrong, but I don't think ResourceLoader supports that, primarily because it's outside the scope of what RL does. RL is made only for internal JavaScript modules that can be maintained and managed within the application.
You will probably just have to use OutputPage::addScriptFile( " http://www.google.com/jsapi" ) to do it.
*-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2016 Major in Computer Science
Hey,
I don't know what the current state of affairs is, but when I looked into this for the Maps extension shortly after RL was introduced, it was not possible.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --
wikitech-l@lists.wikimedia.org