Skip to content

Commit 4c9ed70

Browse files
committed
Replace image_tag with lazy's one in rest of pages
1 parent 26d9e32 commit 4c9ed70

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed

app/views/shared/_header.html.haml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
%span.icon-bar
99
%span.icon-bar
1010
.navbar-header-logos
11-
= link_to image_tag('/img/header-logo.png', alt: 'CoderDojo logo'), '/', id: "header-logo"
12-
= link_to image_tag('/img/header-brand.png', alt: 'CoderDojo brand'), '/', id: "header-brand"
11+
= link_to lazy_image_tag('/img/header-logo.png', min: '/img/header-logo.min.png',
12+
alt: 'CoderDojo logo'), '/', id: "header-logo"
13+
= link_to lazy_image_tag('/img/header-brand.png', min: '/img/header-brand.min.png',
14+
alt: 'CoderDojo brand'), '/', id: "header-brand"
1315
#bs-example-navbar-collapse-1.collapse#header-nav-toggle.navbar-collapse
1416
%ul.nav.navbar-nav.navbar-right
1517
%li= link_to '全国の道場', '/#dojos'

app/views/spaces/index.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%section.cover
2-
= image_tag "spaces_cover.png"
2+
= lazy_image_tag "spaces_cover.png", alt: "Cover photo for CoderDojo Spaces"
33

44
%section.introduction.text-center.list
55
%h1

app/views/stats/show.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
%script{ type: 'text/javascript', src: '/js/jquery.japan-map.js'}
77

88
%section#top{style: 'padding-top:40px; background-color: white; max-width: 400px; margin: 0 auto;'}
9-
= image_tag "stats_cover.png"
9+
= lazy_image_tag 'stats_cover.png', alt: 'Cover photo for CoderDojo Stats'
1010

1111
%section.stats.text-center
1212
%h1 統計情報

public/img/header-brand.min.png

2.17 KB
Loading

public/img/header-brand.png

-15.3 KB
Loading

public/img/header-logo.min.png

776 Bytes
Loading

public/img/header-logo.png

-7.12 KB
Loading

0 commit comments

Comments
 (0)