WordPress not working after defer parsing javascript
-
Hello there,
In the process to defer parsing of JavaScript to my working in progress site https://www.iamericas.org/wordpress I added the following code to theme functions.php file
function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return "$url' defer "; } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
After refreshing the page the home page wouldn’t load properly, but the rest of the site loads fine. I am also unable to access the back end (blank page). I restored the original functions.php and database from back up, but not luck.
Any help is highly appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WordPress not working after defer parsing javascript’ is closed to new replies.