Don't force #p-lang to show using jQuery.fn.show
It's a performance anti-pattern; see <https://github.com/jquery/jquery.com/issues/88#issuecomment-72400007> Change-Id: If6e521c27975f7d64932268fde5778aa63fd08ee
This commit is contained in:
@@ -315,8 +315,8 @@
|
||||
$pLang = $( '#p-lang' );
|
||||
// Add an element near the interlanguage links header
|
||||
$ulsTrigger = $( '<span>' ).addClass( 'uls-settings-trigger' );
|
||||
// Append ULS cog to languages section, but make sure it is visible.
|
||||
$pLang.show().prepend( $ulsTrigger );
|
||||
// Append ULS cog to languages section.
|
||||
$pLang.prepend( $ulsTrigger );
|
||||
// Take care of any other elements with this class.
|
||||
$ulsTrigger = $( '.uls-settings-trigger' );
|
||||
// Remove the dummy link, which was added to make sure that the section appears
|
||||
|
||||
Reference in New Issue
Block a user