-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent @imported css from getting in queue behind the javascript
This forces the css to the head of the queue which prevents a flash of unstyled content
- Loading branch information
Showing
3 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +0,0 @@ | ||
/* GeoBlacklight (compiled locally by cssbundling-rails) */ | ||
@import url("geoblacklight.css"); | ||
|
||
/* EarthWorks */ | ||
@import url("earthworks.css"); | ||
|
||
/* Component library */ | ||
@import url("https://cdn.jsdelivr.net/gh/sul-dlss/component-library@v2024-08-13/styles/sul.css"); | ||
|
||
/* Bootstrap Icons */ | ||
@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,11 @@ | |
</script> | ||
<%= opensearch_description_tag application_name, opensearch_catalog_url(format: 'xml') %> | ||
<%= favicon_link_tag %> | ||
<%= stylesheet_link_tag "application", media: "all", "data-turbo-track": "reload" %> | ||
<%= stylesheet_link_tag "geoblacklight", media: "all", "data-turbo-track": "reload" %> | ||
<%= stylesheet_link_tag "earthworks", media: "all", "data-turbo-track": "reload" %> | ||
<%= stylesheet_link_tag "https://cdn.jsdelivr.net/gh/sul-dlss/component-library@v2024-08-13/styles/sul.css" %> | ||
<%= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css" %> | ||
<% if defined? Importmap %> | ||
<%= javascript_importmap_tags %> | ||
<% elsif defined? Propshaft %> | ||
|