Skip to content

Commit

Permalink
fix: removed blur from lazyload placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoreMihai committed Dec 6, 2019
1 parent 2ea1d82 commit 2c7d66d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ public function register_public_actions() {
* Adds script for lazyload/js replacement.
*/
public function inline_bootstrap_script() {
$blur = 'filter: blur(5px);';
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Mac OS' ) !== false && strpos( $_SERVER['HTTP_USER_AGENT'], 'Safari' ) !== false ) {
$blur = '';
}

$domain = 'https://' . OPTML_JS_CDN;

$min = ! OPTML_DEBUG ? '.min' : '';
Expand All @@ -89,7 +86,6 @@ public function inline_bootstrap_script() {
}
img[data-opt-src]:not([data-opt-lazy-loaded]) {
opacity: .75;
%s
}
</style>
Expand All @@ -116,7 +112,6 @@ public function inline_bootstrap_script() {
document.addEventListener( "DOMContentLoaded", function() { document.body.className = document.body.className.replace("optimole-no-script",""); } );
</script>',
$blur,
esc_url( $domain ),
$min,
$bgclasses,
Expand Down

0 comments on commit 2c7d66d

Please sign in to comment.