question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Support to convert css link tags to async/preload tags

See original GitHub issue

This plugin does a great job.

Here’s a feature request to please add support to convert css link tags to async/preload tags

for example convert

<link rel="stylesheet" href="styles.117bbb465e9c23da0dcf.css">

to

<link rel="stylesheet" href="styles.117bbb465e9c23da0dcf.css" media="print" onload='this.media="all",this.onload=null'>

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
DanielRufcommented, Jun 6, 2020

I think it is better if you mention the issues at https://github.com/bezoerb/inline-critical/issues

1reaction
DanielRufcommented, Jun 6, 2020

The library is about saving bytes / compressing your input, not performance improvements by adding code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link types: preload - HTML: HyperText Markup Language | MDN
The preload value of the element's rel attribute lets you declare fetch requests in the HTML's , specifying resources that your page will ......
Read more >
Preload, prefetch and other <link> tags
Prefetch a CSS file, prerender a full page, or resolve a domain ahead of time – and you won't have to wait for...
Read more >
How to load CSS Asynchronously - html - Stack Overflow
2020 Update. The simple answer (full browser support): <link rel="stylesheet" href="style.css" media="print" onload="this.media='all'">.
Read more >
HTML link tag - W3Schools
The <link> tag defines the relationship between the current document and an external resource. The <link> tag is most often used to link...
Read more >
Feature Requests - WP Fusion
Idea would be simply to have an option in the UI to auto-apply tags when a user clicks through one of the tracked...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found