Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a2f37ba4
Commit
a2f37ba4
authored
Feb 19, 2019
by
Joe Haddad
Committed by
Tim Neutkens
Feb 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Join merged style tags (#6345)
parent
fb672478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
_document.js
packages/next/pages/_document.js
+1
-1
No files found.
packages/next/pages/_document.js
View file @
a2f37ba4
...
...
@@ -135,7 +135,7 @@ export class Head extends Component {
{
/* https://www.ampproject.org/docs/fundamentals/optimize_amp#optimize-the-amp-runtime-loading */
}
<
link
rel
=
"preload"
as
=
"script"
href
=
"https://cdn.ampproject.org/v0.js"
/>
{
/* Add custom styles before AMP styles to prevent accidental overrides */
}
{
styles
&&
<
style
amp
-
custom
=
""
dangerouslySetInnerHTML
=
{{
__html
:
styles
.
map
((
style
)
=>
style
.
props
.
dangerouslySetInnerHTML
.
__html
)}}
/>
}
{
styles
&&
<
style
amp
-
custom
=
""
dangerouslySetInnerHTML
=
{{
__html
:
styles
.
map
((
style
)
=>
style
.
props
.
dangerouslySetInnerHTML
.
__html
)
.
join
(
''
)
}}
/>
}
<
style
amp
-
boilerplate
=
""
dangerouslySetInnerHTML
=
{{
__html
:
`body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}`
}}
><
/style
>
<
noscript
><
style
amp
-
boilerplate
=
""
dangerouslySetInnerHTML
=
{{
__html
:
`body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}`
}}
><
/style></
noscript
>
<
script
async
src
=
"https://cdn.ampproject.org/v0.js"
><
/script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment