Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
loading=lazy
Search
Kaneko Takeshi
February 28, 2020
Technology
0
21
loading=lazy
pizza_jp#26
Kaneko Takeshi
February 28, 2020
Tweet
Share
More Decks by Kaneko Takeshi
See All by Kaneko Takeshi
オープンソースライセンスについて勉強する定期
tkckaneko
0
26
Eye Tracking on the Browser
tkckaneko
0
83
IEEE754を完全に理解した
tkckaneko
1
74
CSSのトレンドをみんなで見よう -2021年-
tkckaneko
0
91
多分これが一番早いと思います
tkckaneko
0
25
暗黒面の話
tkckaneko
0
22
CSR / SSR / SSG / JAMstack
tkckaneko
0
67
BOLT
tkckaneko
0
22
CSS Logical Properties and Values
tkckaneko
0
32
Other Decks in Technology
See All in Technology
Cloud Native Scalability for Internal Developer Platforms
hhiroshell
2
370
「規約、知識、オペレーション」から考える中規模以上の開発組織のCursorルールの 考え方・育て方 / Cursor Rules for Coding Styles, Domain Knowledges and Operations
yuitosato
5
1.3k
Snowflake Intelligenceで実現できるノーコードAI活用
takumimukaiyama
1
180
QAはソフトウェアエンジニアリングを学んで実践するのが大事なの
ymty
1
250
Go Connectへの想い
chiroruxx
0
160
Tensix Core アーキテクチャ解説
tenstorrent_japan
0
340
AWS全冠したので振りかえってみる
tajimon
0
120
データベースの引越しを Ora2Pg でスマートにやろう
jri_narita
0
200
Nonaka Sensei
kawaguti
PRO
3
600
産業機械をElixirで制御する
kikuyuta
0
140
Web Intelligence and Visual Media Analytics
weblyzard
PRO
1
6.1k
Tenstorrent 開発者プログラム
tenstorrent_japan
0
290
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
524
40k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Docker and Python
trallard
44
3.4k
It's Worth the Effort
3n
184
28k
The Invisible Side of Design
smashingmag
299
50k
BBQ
matthewcrist
89
9.7k
Writing Fast Ruby
sferik
628
61k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
We Have a Design System, Now What?
morganepeng
52
7.6k
How to Ace a Technical Interview
jacobian
276
23k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
16
910
Transcript
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