Skip to content

Commit

Permalink
Update page speed score on the Demo home page
Browse files Browse the repository at this point in the history
Also fixes a comment about the gravatar gem
  • Loading branch information
glebm committed Feb 26, 2022
1 parent bb6ecbf commit a0370c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/generators/thredded/install/templates/initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# This method is used by Thredded controllers and views to fetch the currently signed-in user
Thredded.current_user_method = :"current_#{Thredded.user_class_name.demodulize.underscore}"

# User avatar URL. rb-gravatar gem is used by default:
# User avatar URL. rails_gravatar gem is used by default:
Thredded.avatar_url = ->(user) { RailsGravatar.src(user.email, 156, 'mm') }

# ==> Permissions Configuration
Expand Down
3 changes: 1 addition & 2 deletions spec/dummy/app/views/home/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
<li>
<a href="https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fthredded.org%2Fthredded&tab=mobile">
Page Speed
</a> score of <span class="home-page-speed-score">99+ / 100</span> in User Experience
and <span class="home-page-speed-score">88+ / 100</span> in Speed on Mobile.
</a> score of <span class="home-page-speed-score">100</span> on Mobile and Desktop.
</li>
</ul>

Expand Down

0 comments on commit a0370c3

Please sign in to comment.