You appear to be a bot. Output may be restricted
Description
Handles JavaScript detection.
Adds a js
class to the root <html>
element when JavaScript is detected.
Usage
twentyseventeen_javascript_detection();
Parameters
Returns
void
Source
File name: twentyseventeen/functions.php
Lines:
1 to 3 of 3
function twentyseventeen_javascript_detection() { echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n"; }