Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
559285bc
Commit
559285bc
authored
May 28, 2020
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix preconnect typo
parent
9a11d189
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-1
changelogs/unreleased/fix_preconnect_typo.yml
changelogs/unreleased/fix_preconnect_typo.yml
+5
-0
spec/views/layouts/_head.html.haml_spec.rb
spec/views/layouts/_head.html.haml_spec.rb
+1
-1
No files found.
app/views/layouts/_head.html.haml
View file @
559285bc
...
...
@@ -18,7 +18,7 @@
-
if
ActionController
::
Base
.
asset_host
%link
{
rel:
'dns-prefetch'
,
href:
ActionController
::
Base
.
asset_host
}
%link
{
rel:
'preconn
n
ect'
,
href:
ActionController
::
Base
.
asset_host
,
crossorigin:
''
}
%link
{
rel:
'preconnect'
,
href:
ActionController
::
Base
.
asset_host
,
crossorigin:
''
}
%meta
{
'http-equiv'
=>
'X-UA-Compatible'
,
content:
'IE=edge'
}
...
...
changelogs/unreleased/fix_preconnect_typo.yml
0 → 100644
View file @
559285bc
---
title
:
Fix preconnect typo in rel link
merge_request
:
33255
author
:
type
:
performance
spec/views/layouts/_head.html.haml_spec.rb
View file @
559285bc
...
...
@@ -50,7 +50,7 @@ describe 'layouts/_head' do
it
'adds a link preconnect tag'
do
render
expect
(
rendered
).
to
match
(
%Q(<link crossorigin="" href="
#{
asset_host
}
" rel="preconn
n
ect">)
)
expect
(
rendered
).
to
match
(
%Q(<link crossorigin="" href="
#{
asset_host
}
" rel="preconnect">)
)
end
end
...
...
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