cancel
Showing results for 
Search instead for 
Did you mean: 

Looking to add link rel=preload to the "head" area, how to do this?

Looking to add link rel=preload to the "head" area, how to do this?

 

While doing speed tests on our site, we found that it would enhance our site if we were able to put rel=preload statements in the headers when css and js scripts are loaded. would anyone know what we need to edit to accomplish this?

 

This is an example of what needs to be preloaded:

----------------------------------------------------

https://www.domain.com/pub/static/version1606870119/frontend/Mgs/claue/en_US/fonts/Pe-icon-7-stroke....

 

This is an example of how it should look

----------------------------

<head>
...
<link rel="preload" href="styles.css" as="style">
<link rel="preload" href="ui.js" as="script">
...
</head>

Thank you!