Bug ID: 61391
           Summary: Insert link item for adding language links in PHP
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: performance
          Severity: normal
          Priority: Unprioritized
         Component: WikidataClient
       Web browser: ---
   Mobile Platform: ---

Right now, the "Edit links" link in the languages pane of the sidebar is
inserted via JavaScript after the page's contents have finished loading.
There's good momentum at the moment behind moving all code that modifies the
initial appearance of the page to PHP, because having parts of the interface be
drawn and redrawn as the page is loading is slow and distracting.

The ability to add inter-language links in-place (that is, without navigating
away from the page) requires that the user's browser supports CORS. Right now,
the JavaScript code checks to see that the user's browser supports CORS. It
will insert the link if the browser does support it, and not insert the link
otherwise.  This particular check cannot be performed in PHP, so the
alternative that I am proposing is that for users that do not have CORS
support, clicking the link will trigger navigation to Wikidatawiki.

CORS support is at around 80% of global traffic, per <>.

To be clear: if we make this change, the experience of 80% of users will not
change. The impact will be scoped to the 20% of users that do not have CORS.
They are currently not shown the "Edit links" link at all. If we make the
change described above, they would be shown it, but instead of activating the
in-place editing interface, it would cause them to navigate to Wikidatawiki.

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to