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

           Summary: SF loads SMW Javascripts even if loaded already
           Product: MediaWiki extensions
           Version: any
          Platform: All
               URL: http://semantic-mediawiki.org/w/index.php?title=Wiki_o
                    f_the_Month&oldid=4825
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: mar...@semantic-mediawiki.org
                CC: wikibugs-l@lists.wikimedia.org


SF loads Javascripts and styles from the SMW extension without caring about
whether or not they are loaded by SMW. This can lead to multiple copies of a
script being loaded, which can cause errors.

This happens on the above URL: the result table at the top features two copies
of sort buttons. This is because of the form input further below which loads
the SMW script. This is additionally strange since the script is not needed for
SF at all. For best compatibility, SMW extensions should use the resource
loading mechanism in ./includes/SMW_Outputs.php which is now also compatible
with the new ResourceLoader. Even if ResourceLoader is not available yet, the
mechanism will avoid duplicates.

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