Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KikoLdasd's avatar

Preload function

Hi, instead of "rel = stylesheet" I used "rel = preload" for fontawesome but now the icons are no longer visible, how can I include stylesheet and preload in the same link?

0 likes
2 replies
neilstee's avatar
neilstee
Best Answer
Level 34

@kikoldasd you need to make two

<link rel="preload" href="style.css" as="style">
<link rel="stylesheet" href="style.css">

Please or to participate in this conversation.