MatmaRex e1d65006dd RegionSelector: Avoid reflows when generating the list
Every time an item is added to the list - 387 times for me - we
shuffle elements around and add at least one new one. This causes
browsers to trigger style recalculation (to figure out which styles
apply to elements with such and such classes) and content reflows
(how the text and elements are wrapped to fit available width).

We can avoid this by simply detaching the parent element from the DOM
tree and attaching it back once we're done - this make it only trigger
one recalculation and one reflow.

In my profiling on Opera on a Thinkpad T60 (with lazy-loading
disabled), these two steps took respectively around 600ms and 400ms.
Now they're down to around 50ms each.
2013-06-27 16:28:04 +05:30
2013-05-30 16:19:00 +02:00
2013-03-26 09:28:19 +05:30
2013-03-12 05:17:38 +01:00
2012-10-08 07:43:41 +02:00
2012-09-23 21:46:30 -07:00
2012-09-23 21:46:30 -07:00
2013-03-15 14:57:19 +05:30
2012-09-23 21:46:30 -07:00
2012-12-30 20:34:32 +02:00

jQuery Universal Language Selector

Universal Language Selector

Build Status

This is a Wikimedia Foundation Internationalization team project.

Universal Language Selector

Quick start

git clone https://github.com/wikimedia/jquery.uls.git

Documentation

For documentation and examples please visit the wiki

How to build and test jQuery ULS

First, get a copy of the git repo by running:

git clone git://github.com/wikimedia/jquery.uls.git

Make sure you have grunt installed by testing:

grunt -version

If not, run:

npm install

To run tests locally, run grunt test. This will run the tests in PhantomJS.

You can also run the tests in a browser by navigating to the test/ directory, but first run grunt to install the submodules.

Coding style

Please follow jQuery coding guidelines

Versioning

For transparency and insight into the release cycle, and to upgrading easier, we use the Semantic Versioning guidelines as much as possible.

Releases will be numbered with the following format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

  • Breaking backward compatibility bumps the major (and resets the minor and patch)
  • New additions without breaking backward compatibility bumps the minor (and resets the patch)
  • Bug fixes and misc changes bumps the patch

For more information on SemVer, please visit http://semver.org/.

Languages
JavaScript 91.5%
CSS 7.8%
HTML 0.4%
Shell 0.3%