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

       Web browser: ---
             Bug #: 30856
           Summary: addScript in BeforeDisplayPage
           Product: MediaWiki
           Version: 1.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Resource Loader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


I'm using "addScript" for a own "BeforeDisplayPage" hook to add some scripts
and stylesheets ($out->addScript("<link ....") and $out->addScript("<script
...")); This works fine up to 1.16.5. 

In 1.17 the "SCRIPT" and also the "LINK" are inserted at the end of HTML and
not in the "<HEAD>". For CSS this is a problem (e.g. "flicker" effects for
"display none" CSS elements).

Problem currently bypassed using "$out->addHeadItem" which works fine. 

May be you could change this to implicit "addHeadItem" in the future? 

Problem seems to be only in "BeforeDisplayPage" hook processing, not in PARSER
extensions. From my point of view (maybe wrong) it relates to the resource
loader processing (which works fine!)

Regards

W. Rohrschacher

-- 
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