swte

use absolute protocol for DNS prefetch

Mar 6th, 2021 (edited)
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. /**
  2.  * Plugin Name: Swift Performance Tweaks
  3.  */
  4.  
  5. add_filter('swift_performance_buffer', function($buffer){
  6.     return str_replace("<link rel='dns-prefetch' href='//", "<link rel='dns-prefetch' href='https://", $buffer);
  7. });
Add Comment
Please, Sign In to add comment