Skip to content

Commit a459b5d

Browse files
committed
jquery: Add the js class, remove the no-js one
This used to be done by Modernizr until its removal in 08f27c1. Some sites apply different styling for JS-disabled environments; one such example is the jQuery UI Download Builder which expands all Themeroller knobs sections in the no-JS mode.
1 parent b12072b commit a459b5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

themes/jquery/js/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Some CSS depends on the `js` class.
2+
$( "html" ).addClass( "js" ).removeClass( "no-js" );
3+
14
/*
25
* All sites
36
*/

0 commit comments

Comments
 (0)