• Home
  • Get help
  • Ask a question
Last post 6 hours 32 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67419
All time tickets 10424
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#8389 – preload css in the HTTP Header

Posted in ‘4SEO’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 16 December 2021 22:03 UTC
agerix

Hello,

I'm searching a way to preload the css file in the head. I'm using a Yootheme framework and I loose points on the first paint of my pages. I have made a preload for font woof2 and it works fine so now I'm looking for the same benefit with css and js files.

My first test was the css so I set this line Screenshot 2021-12-16_23h01_07.png

But I still have the same result on lighthouse (screenshot 2021-12-16_22h57_39.png)

How can I do that with 4SEO?

Thank you by advance for answers

 

 
Friday, 17 December 2021 07:45 UTC
wb_weeblr

Hi

Probably like this but you have to use a valid syntax, such as:

<link href="/templates/..." rel="preload" as="style"/>

Also, you may want to put this up as early as possible in thepage, so maybe "After the <head> tag" rather than "Before the </head> tag.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Monday, 20 December 2021 15:46 UTC
agerix

Oups.... Sorry ;)

 
Monday, 20 December 2021 15:48 UTC
wb_weeblr

Hi

No problem. It's likely not as easy as it seems, because the query parts (?16396...) is going to change often, it's a random part added to force reload when browsers cache result but the file has changed.

Not sure how that can be handled when trying to hardcode this with rules through the user interface.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 20 January 2022 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.