Skip to content

Commit

Permalink
jquery: Add the js class, remove the no-js one
Browse files Browse the repository at this point in the history
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.

Closes gh-457
  • Loading branch information
mgol committed Apr 19, 2024
1 parent b12072b commit 9e69788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions themes/jquery/js/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Some CSS depends on the `js` class.
$( "html" ).addClass( "js" ).removeClass( "no-js" );

/*
* All sites
*/
Expand Down

0 comments on commit 9e69788

Please sign in to comment.