react best practices for module/nomodule feature detection #12571
Unanswered
jeremygottfried
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you run google lighthouse performance test, one of the recommendations is to serve two builds, one for legacy browsers and one for browsers that support modules, as described in this article.
Here's what they tell you inline in the lighthouse opportunities section:
The html file would look something like this:
This apparently improves the "Total Blocking Time" metric. I've also seen it called "differential serving".
Does create-react-app have a built-in config for differential serving or a recommended best practice for configuring webpack?
Beta Was this translation helpful? Give feedback.
All reactions