https://bugzilla.wikimedia.org/show_bug.cgi?id=34517

       Web browser: ---
             Bug #: 34517
           Summary: Sometimes scripts imported by mw.loader.load on
                    common.js are not executed
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: https://www.mediawiki.org/w/index.php?oldid=501327
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


After MediaWiki.org was updated to MW 1.19 I noticed my global scripts were not
being loaded sometimes.

I replaced the content of [[mw:Project:Sandbox]] by the code
----
window.console.log( 'ok' );
----

and added
----
mw.loader.load(
'//www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=501326&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400'
);
----

to [[mw:Special:MyPage/common.js]]. When I opened [[mw:Special:Random]] a few
times, I was expecting to always get the "ok" message in the error console, but
this only happened some times. When it didn't, a SHIFT+Reload solved the
problem for that page, but then if a opened another random page the problem is
back again.

I've reproduced this on Google Chrome 17.0.963.56 and Firefox 10.0.2.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to