Skip to content

Commit

Permalink
Running locally, stylesheets in head, JS moved to bottom to avoid ren…
Browse files Browse the repository at this point in the history
…der blocking resources
  • Loading branch information
JessicaML committed Apr 25, 2021
1 parent 7f87a6f commit ee277c8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ gem 'rest-client', '~> 1.8'

gem 'activerecord', '~> 5.0', '>= 5.0.0.1'

gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f'

group :development, :test do
gem 'sqlite3'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down
11 changes: 9 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ GIT
railties (>= 5.2, < 6.1)
responders (>= 2, < 4)

GIT
remote: https://github.com/mimemagicrb/mimemagic.git
revision: 01f92d86d15d85cfd0f20dabd025dcbd36a8a60f
ref: 01f92d86d15d85cfd0f20dabd025dcbd36a8a60f
specs:
mimemagic (0.3.5)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -163,7 +170,6 @@ GEM
mimemagic (~> 0.3.2)
method_source (0.9.2)
mime-types (2.99.3)
mimemagic (0.3.3)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
mini_racer (0.2.9)
Expand Down Expand Up @@ -346,6 +352,7 @@ DEPENDENCIES
launchy
libv8
listen (>= 3.0.5, < 3.2)
mimemagic!
mini_racer (~> 0.2.9)
nokogiri (>= 1.10.4)
pg (= 0.21.0)
Expand All @@ -371,7 +378,7 @@ DEPENDENCIES
webpacker (~> 4.2.2)

RUBY VERSION
ruby 2.6.5p114
ruby 2.7.0p0

BUNDLED WITH
2.1.4
10 changes: 6 additions & 4 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<%= csrf_meta_tags %>
<%= favicon_link_tag asset_path('favicon.png') %>
<%= csrf_meta_tags %>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<%= stylesheet_pack_tag 'application' %>

</head>

<body>
Expand Down Expand Up @@ -75,11 +78,10 @@
<div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<%= stylesheet_pack_tag 'application' %>
<%= javascript_pack_tag 'application' %>
<%= javascript_pack_tag 'container-bundle' %>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.js"></script>
</body>
</html>

0 comments on commit ee277c8

Please sign in to comment.