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

           Summary: Dynamic CSS not loaded immediately
           Product: MediaWiki
           Version: 1.17
          Platform: All
               URL: view-source:http://pl.wikipedia.org/w/index.php?title=
                    Wikipedysta:Nux/hideSidebar.dev.js&action=raw&ctype=te
                    xt/javascript&dontcountme=s
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Resource Loader
        AssignedTo: tpars...@wikimedia.org
        ReportedBy: e...@wp.pl
                CC: roan.katt...@gmail.com


Steps:
1. Use document.write to include JS.
2. Use document.write (not in onload!) to create dynamic CSS.

Example script attached.

I know what you think about document.write, but the bottom line is that it used
to work and it was a valid usage. If there is a workaround for that then I'm
not aware of it.

Note that the CSS rules are dynamic and they must be visible (created and
loaded) BEFORE the page is ready. This is the only way the page won't flicker
upon loading.

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

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to