Skip to content

Preload webfonts? #2

Closed Answered by mbabker
it-can asked this question in Q&A
Jun 24, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes. PushManager::preload(asset('fonts/BPscript.woff2'), ['as' => 'font', 'type' => 'font/woff2']);

I'm doing it in https://github.com/BabDev/babdev.com/blob/production/app/Http/Middleware/PreloadAssets.php

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@it-can
Comment options

Answer selected by it-can
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1 on June 24, 2022 14:27.