Add a early js script.
This commit is contained in:
parent
35c1c9f20f
commit
88054afa22
1 changed files with 16 additions and 2 deletions
13
assets/js/script-early.js
Normal file
13
assets/js/script-early.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @file
|
||||
* A JavaScript file for the theme. Runs first, before jQuery etc. have loaded.
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
||||
'use strict';
|
||||
|
||||
// Add a js class to the html-tag when JavsScript is active.
|
||||
document.querySelector('html').classList.replace('nojs', 'js');
|
||||
|
||||
})();
|
||||
Loading…
Reference in a new issue