Skip to content

Commit

Permalink
Add explicit width and height to crown logo.
Browse files Browse the repository at this point in the history
PageSpeed suggests: "Specifying a width and height for all images allows for
faster rendering by eliminating the need for unnecessary reflows and
repaints."

We never seem to resize this image, so this shouldn't do any harm.
  • Loading branch information
annapowellsmith committed Mar 4, 2014
1 parent ae27bcd commit c0e8bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/views/layouts/govuk_template.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<div class="header-global">
<div class="header-logo">
<a href="https://www.gov.uk/" title="Go to the GOV.UK homepage" id="logo" class="content">
<img src="<%= asset_path 'gov.uk_logotype_crown.png' %>" alt=""> GOV.UK
<img src="<%= asset_path 'gov.uk_logotype_crown.png' %>" width="35" height="31" alt=""> GOV.UK
</a>
</div>
<%= yield :inside_header %>
Expand Down

0 comments on commit c0e8bd3

Please sign in to comment.