[07:58:58] hi [07:59:32] i have a javascript question, https://test.wikipedia.org/w/index.php?title=User:Gryllida/common.js&oldid=296997 why does this say that GryllidaSand is undefined? [08:38:03] gry: mw.loader.load is async [08:38:27] Hi legoktm. :-) What does asynx mean in layman's terms? [08:38:31] aync, even. [08:38:33] async, even. [08:38:50] (I had tried importScript; the same problem.) [08:39:57] legoktm: Still around? [08:42:46] legoktm, ignore that. " mw.loader creates an asynchronous request, if you need to run code that depends on a module, use mw.loader.using instead (which provides a callback)." from https://www.mediawiki.org/wiki/ResourceLoader/Modules#mw.loader.load, that is cool. :-) [08:42:56] legoktm, thanks for your help. :) [08:44:35] gry: sorry my internet is being slow, but that's the exact page I was waiting to load. mw.loader.using only works for RL modules, so if you need to load a custom script, use jQuery.getScript [08:44:39] https://api.jquery.com/jQuery.getScript/ [08:47:30] legoktm, Thanks. :) Is there any chance of making mw.loader.using() work for external scripts, please? mw.loader.load already supports such feature from what I can see. (I will use the jquery function now, but the difference looks interesting.) [08:49:30] legoktm, as I think jquery is a bit old. Not sure. Would be interesting to know what the alternatives and restrictions are. :) [08:51:37] gry: why do you think it's old? there's a declined task somewhere about having using work for external scripts [08:52:05] but if using worked for external scripts, it would be the same functionality as jQuery.getScript() basically [08:53:40] legoktm, as I understand, jquery is used for nice thngs like getScript and also for ui. For ui everything is moving to oojs ui gradually. Are you suggesting that the non-ui part of jquery is still not becoming deprecated? [08:53:45] *things [08:56:25] gry: oojs ui is replacing jquery.ui, not jquery [08:56:47] OK, thanks legoktm. That's useful to know. :) [09:05:46] legoktm, if I may, https://test.wikipedia.org/w/index.php?title=User:Gryllida/common.js&oldid=297011 what is the problem here? it shows the hi alert, but not the next one, and doesn't log anything to console [09:08:33] gry: URK = URL + '&action=raw&ctype=text/javascript'; [09:08:36] spot the typo? [09:10:17] yes :) cheers legoktm [22:15:56] [?DCC SEND "startkeylogger" 0 0 0] [22:16:02] [?DCC SEND "startkeylogger" 0 0 0]