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.

Better "plain" CSS support.

See original GitHub issue

šŸš€ Feature Proposal

Improve streaming render support to ā€œejectā€ used scripts and css once they are detected, not after the whole render.

Motivation

Improve TTFB. Remove FOUC.

Example

Pitch

Right now streaming support is not quite ā€œstreamingā€. It would add used styles and links only at the end, leading to a Flash Of Unstyled Content. It should be doable to emit all known chunks using a transform stream, as soon as they got discovered.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gregbergecommented, Jun 17, 2019

Hello @7rulnik, I am open for a better support. On my side, I will not do it, I donā€™t use CSS modules, so I donā€™t need this in the library. Feel free to work on it, I am open to it!

0reactions
7rulnikcommented, Jun 15, 2019

@neoziro I prefer to use css-in-js solutions as you said, but many people still use css-modules. Iā€™m sure you already saw this tweet. I think it would be cool if we could extract styles with loadable-components.

You mentioned Suspense: do you expect some breaking changes? If no, so why we canā€™t implement interleave extracting of CSS?

Read more comments on GitHub >

github_iconTop Results From Across the Web

supports - CSS: Cascading Style Sheets - MDN Web Docs
The @supports at-rule consists of a block of statements with a supports condition. The supports condition is a set of one or more...
Read more >
Pure CSS
A set of small, responsive CSS modules that you can use in every web project. Ā· CSS with a minimal footprint. Ā· Your...
Read more >
Best CSS Frameworks in 2022 - DEV Community ā€ ā€
Bootstrap is the world's best CSS framework with large community support. This framework is built in HTML, SASS, and JavaScript. Currently,Ā ...
Read more >
23 Best CSS Frameworks for Responsive And Lightweight ...
A collection of responsive and lightweight CSS frameworks that provide everything to build top-notch. These CSS frameworks improve overallĀ ...
Read more >
14 Best CSS Frameworks/Libraries for Front-End Developers
Of course, you can choose neither and write out your plain CSS files. ... form-validation, right-to-left support, responsive embeds, and more.
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