Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
loading=lazy
Search
Kaneko Takeshi
February 28, 2020
Technology
36
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
loading=lazy
pizza_jp#26
Kaneko Takeshi
February 28, 2020
Transcript
7 slides
loading=lazy
- 2月12日にHTML Living Standardが更新され<img>と<iframe>に loadingプロパティが公式に追加されました。 - 「公式に」というのは既に去年の6月4日リリースのChrome75で は実装されていたので - 公式に発表されたことでFirebaseの75でもサポートされるようにな
るそうです - Chromiumを使っているMicrosoft Edgeも実装済みです
None
- loading=lazyは読み込みを遅延するためのプロパティです - 画像がブラウザの表示領域に入ると読み込まれます - 指定をしないとloading=autoと同じになります - ブラウザの指定に従います - 今まで通りに読み込ませたいときにはloading=eagerを指定しま
す
- ちなみにサポートしていないブラウザでも動作させるためにpolyfilもあ るので、既に導入しても大丈夫です - どうでもいい情報ですが、wordpressに対応させるためのプラグインも あるそうです(Google製)
None
参考 - https://html.spec.whatwg.org/multipage/urls-and-fetching.html#laz y-loading-attribute - https://github.com/mfranzke/loading-attribute-polyfill - https://ja.wordpress.org/plugins/native-lazyload/ - https://scalable-loading-contribs.firebaseapp.com/test.html
More Decks by Kaneko Takeshi
See All by Kaneko Takeshi
オープンソースライセンスについて勉強する定期
tkckaneko
0
57
Eye Tracking on the Browser
tkckaneko
0
110
IEEE754を完全に理解した
tkckaneko
1
97
CSSのトレンドをみんなで見よう -2021年-
tkckaneko
0
110
多分これが一番早いと思います
tkckaneko
0
35
暗黒面の話
tkckaneko
0
38
CSR / SSR / SSG / JAMstack
tkckaneko
0
86
BOLT
tkckaneko
0
48
CSS Logical Properties and Values
tkckaneko
0
72
Other Decks in Technology
See All in Technology
現地速報! Microsoft Ignite アップデートレポート
kasada
1
460
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
270
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.5k
gradle-best-practices 使ってみた
mikanichinose
0
230
Is the Website Dying?
miriamschwab
0
150
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
3
1.4k
コーディングできない僕にBobが舞い降りた
shumpei3
0
200
Test Impact Analysis を武器に立ち向かう、AI 時代のテスト増加に対するヌーラボのアプローチ / getting-started-datadog-test-impact-analysis
k6s4i53rx
3
420
HTTP QUERY時代の型安全な検索APIをKotlinで設計する
sansantech
PRO
1
130
セキュリティチームは どのコンテナイメージの脆弱性対応を優先すべきか 〜CISA新指針とSCCで作る脆弱性トリアージ〜
swdtkuy
0
330
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
520
2026-11-16 JAWS-UG コンテナ支部 #31 ゆるLT大会 ECR のライフサイクルポリシーを いい感じに設定したい / ECR Lifecycle policy
masasuzu
3
620
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
970
Being A Developer After 40
akosma
PRO
92
590k
Skip the Path - Find Your Career Trail
mkilby
1
300
Visualization
eitanlees
153
17k
From π to Pie charts
rasagy
1
460
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
Paper Plane
katiecoart
PRO
6
55k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Facilitating Awesome Meetings
lara
57
7.2k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
540
Site-Speed That Sticks
csswizardry
13
1.6k