Skip to content

Commit

Permalink
skip it!
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Dec 27, 2023
1 parent b9e9a54 commit b76350a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/speed_up.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ public function getOutput()
}

foreach ($this->urls as $url) {
$parsedUrl = parse_url($url);
if (isset($parsedUrl['scheme']) && !in_array($parsedUrl['scheme'], ['http', 'https'])) {
continue;
}
$output .= '<link rel="prefetch" href="'. $url .'">'.PHP_EOL;
}

return $output;
}

Expand Down

0 comments on commit b76350a

Please sign in to comment.