Skip to content

Commit

Permalink
added jquery to exceptions for defer loading
Browse files Browse the repository at this point in the history
  • Loading branch information
tblacker7 committed Sep 25, 2019
1 parent b30c883 commit 8ab63fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/performance-optimisations.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function nightingale_loadcss_files( $html, $handle, $href ) {
*/
function nightingale_defer_parsing_js( $url ) {
// Add the files to exclude from defer. Add jquery.js by default.
$exclude_files = array( 'jquery.min.js', 'loadcss' );
$exclude_files = array( 'jquery', 'loadcss' );
// Bypass JS defer for logged in users.
if ( ! is_user_logged_in() ) {
if ( false === strpos( $url, '.js' ) ) {
Expand Down

0 comments on commit 8ab63fe

Please sign in to comment.