swift_performance_should_optimize

Filter to decide should current page optimized.

Parameters

$result

string which contains the base64 encoded image

Return

string


Example

// Add exception to prevent optimizing specific page
add_filter('swift_performance_should_optimize', function($result){
 if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == '/specific-page/'){
  return false;
 }
 return $result;
});