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
9e5a4cbd
Commit
9e5a4cbd
authored
Aug 20, 2020
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Loading Hints for CSS Stylesheets
parent
aad8b990
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-6
app/views/layouts/_loading_hints.html.haml
app/views/layouts/_loading_hints.html.haml
+13
-0
No files found.
app/views/layouts/_head.html.haml
View file @
9e5a4cbd
...
...
@@ -16,12 +16,7 @@
%head
{
prefix:
"og: http://ogp.me/ns#"
}
%meta
{
charset:
"utf-8"
}
-
if
ActionController
::
Base
.
asset_host
%link
{
rel:
'dns-prefetch'
,
href:
ActionController
::
Base
.
asset_host
}
%link
{
rel:
'preconnect'
,
href:
ActionController
::
Base
.
asset_host
,
crossorigin:
''
}
-
if
Gitlab
::
CurrentSettings
.
snowplow_enabled?
&&
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
%link
{
rel:
'preconnect'
,
href:
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
,
crossorigin:
''
}
=
render
'layouts/loading_hints'
%meta
{
'http-equiv'
=>
'X-UA-Compatible'
,
content:
'IE=edge'
}
...
...
app/views/layouts/_loading_hints.html.haml
0 → 100644
View file @
9e5a4cbd
-
if
ActionController
::
Base
.
asset_host
%link
{
rel:
'dns-prefetch'
,
href:
ActionController
::
Base
.
asset_host
}
%link
{
rel:
'preconnect'
,
href:
ActionController
::
Base
.
asset_host
,
crossorigin:
''
}
-
if
user_application_theme
==
'gl-dark'
%link
{
rel:
'preload'
,
href:
=
stylesheet_url
'application_dark'
,
as:
'style'
}
-
else
%link
{
rel:
'preload'
,
href:
=
stylesheet_url
'application'
,
as:
'style'
}
%link
{
rel:
'preload'
,
href:
=
stylesheet_url
"highlight/themes/#{user_color_scheme}"
,
as:
'style'
}
-
if
Gitlab
::
CurrentSettings
.
snowplow_enabled?
&&
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
%link
{
rel:
'preconnect'
,
href:
Gitlab
::
CurrentSettings
.
snowplow_collector_hostname
,
crossorigin:
''
}
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