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

       Web browser: ---
             Bug #: 39386
           Summary: Clicking on region rapidly, multiple times, causes
                    severe lag
           Product: MediaWiki extensions
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: javascript
          Severity: normal
          Priority: Unprioritized
         Component: UniversalLanguageSelector
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Click five times, quickly, on "America". It's slow as all get out. What's more,
it halts the browser (tested in FF 14.0.1)

There are several options I can think of:

1. Make it faster, so multiple clicks won't matter (much). This is hackish and
unreliable.

2. Use proper callbacks combined with caching and tracking of requests--if a
request already exists for the resource you're trying to get, don't start
another one.

3. Remove the click event after the first click is fired, and replace it only
after the user switches away from that region. This may work best, because it
means no other handling, but it's complicated because you'll need to save the
function definition, an anonymous function won't work here.

I report this bug knowing nothing about the structure of this extension, so
don't think that these are the only options.

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