You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion: use json-perf-loader instead of the default webpack JSON loader.
Because the JSON grammar is much simpler than JavaScript’s grammar, JSON can be parsed more efficiently than JavaScript. This knowledge can be applied to improve start-up performance for web apps that ship large JSON-like configuration object literals (such as inline Redux stores). Instead of inlining the data as a JavaScript object literal.
As long as the JSON string is only evaluated once, the JSON.parse approach is much faster compared to the JavaScript object literal
I've asked if that is still useful for webpack v4 here, just to be sure it makes sense :)
The text was updated successfully, but these errors were encountered:
Suggestion: use json-perf-loader instead of the default webpack JSON loader.
I've asked if that is still useful for webpack v4 here, just to be sure it makes sense :)
The text was updated successfully, but these errors were encountered: