You can inject URLs to preload under "Preload specific requests (advanced users)", but this only works for full URLs, not relative URLs.
The output <link rel="preload"...> tag should work with relative URLs, but in the plugin code it looks like we are validating specifically full urls:
// classes/autoptimizeExtra.php
if ( filter_var( $preload, FILTER_VALIDATE_URL ) !== $preload ) {
continue;
}
Would it be as simple as changing the validation to allow relative URLs? Is there a reason full URLs are required?
You can inject URLs to preload under "Preload specific requests (advanced users)", but this only works for full URLs, not relative URLs.
The output
<link rel="preload"...>tag should work with relative URLs, but in the plugin code it looks like we are validating specifically full urls:Would it be as simple as changing the validation to allow relative URLs? Is there a reason full URLs are required?