Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from filamentgroup/11
Browse files Browse the repository at this point in the history
fixes #11
  • Loading branch information
jefflembeck committed Oct 10, 2014
2 parents 2905402 + 11bf1fd commit f88be00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/criticalrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ phantom args sent from critical.js:
elem = window.document.querySelector( selectors[i] );
} catch (e){}

if( elem && (window.getComputedStyle(elem).display !== "none") && elem.offsetTop <= maxTop ){
if( elem && elem.offsetTop <= maxTop ){
critical.push( selectors[ i ] );
}
}
Expand Down

0 comments on commit f88be00

Please sign in to comment.