Skip to content

Conversation

@markbrocato
Copy link
Contributor

@markbrocato markbrocato commented Jun 9, 2020

React Storefront's NextScript component gives developers greater control over how script elements are rendered.

Example:

import NextScript from 'react-storefront/NextScript'

<NextScript mode="defer"/>

…with defer instead of async in _document.js.
@markbrocato markbrocato requested a review from tonylepmets June 9, 2020 08:43
@markbrocato markbrocato changed the title Added NextScriptDeferred component that allows you to import scripts … Added NextScript component that allows you to import scripts … Jun 9, 2020
@markbrocato markbrocato changed the title Added NextScript component that allows you to import scripts … Added NextScript component Jun 9, 2020
@markbrocato markbrocato merged commit d3624bc into master Jun 9, 2020
@markbrocato markbrocato deleted the defer-scripts branch June 9, 2020 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants