Tags:
Node Thumbnail

ปีที่แล้วเราเห็นกูเกิลประกาศ Chrome จะรองรับ Lazy Load รูปภาพที่ตัวเบราว์เซอร์เลย ไม่ต้องเขียนโค้ด JavaScript อีกต่อไป ซึ่งก่อให้เกิดคำถามว่าโค้ดจะใช้กับเบราว์เซอร์ตัวอื่นๆ ได้หรือไม่

เวลาผ่านมาเกือบปี ล่าสุด Firefox ก็จะเริ่มรองรับฟีเจอร์นี้แล้ว (ใส่คุณสมบัติ loading="lazy" ในแท็ก img) โดยเริ่มใน Firefox 75 ที่สถานะยังเป็น Nightly (กำหนดออกตัวจริงช่วงต้นเดือนเมษายน) ผู้ที่อยากทดสอบสามารถดาวน์โหลด Firefox Nightly แล้วเปิดค่า dom.image-lazy-loading.enabled ในหน้า about:config ก่อน

ฟีเจอร์ lazy load ถูกนำเข้าไปอยู่ในร่างมาตรฐานเว็บของกลุ่ม WHATWG แล้วเช่นกัน และจะเข้ากระบวนการผลักดันเป็นมาตรฐานต่อไป

การที่ Chrome/Chromium ซึ่งเป็นเอนจินหลักของเบราว์เซอร์อีกหลายตัว (เช่น Edge, Opera, Brave) และ Firefox รองรับฟีเจอร์นี้แล้ว ทำให้เหลือแต่ Safari เท่านั้นที่ยังไม่รองรับ

ที่มา - Bugzilla, WHATWG, Neowin

No Description

Get latest news from Blognone

Comments

By: checkmate95
ContributorAndroid
on 17 February 2020 - 11:53 #1147978
checkmate95's picture

ถ้า firefox กับ safari เปลี่ยนมาใช้ chromium บ้างนี่ web dev กราบบบบ

By: big50000
AndroidSUSEUbuntu
on 17 February 2020 - 15:20 #1148019 Reply to:1147978
big50000's picture

no way

By: orbitalz
ContributorWindows PhoneAndroidUbuntu
on 17 February 2020 - 16:05 #1148025 Reply to:1147978

ผูกขาดไปโดยปริยาย

By: put4558350
ContributorAndroidUbuntuWindows
on 17 February 2020 - 23:46 #1148097 Reply to:1148025
put4558350's picture

ไม่รู้เหมือนกัน เพราะ chrome มีส่วนที่ open source ไม่ไช่ ie ที่ close ทั้งหด


samsung ใหญ่แค่ใหน ?
https://youtu.be/6Afpey7Eldo

By: artofdestroy
Windows PhoneAndroidUbuntuWindows
on 18 February 2020 - 09:24 #1148109 Reply to:1148097

open source กับ monopoly นี่คนละเรื่องกันเลยนะครับ

By: illuminator
ContributorAndroidUbuntuWindows
on 18 February 2020 - 09:14 #1148107 Reply to:1147978
illuminator's picture

อย่าเลย Engine ที่เขียน Rust ตอนนี้ก็ไวอยู่แล้ว ผมชอบแบบนี้

By: wichate
Android
on 17 February 2020 - 11:57 #1147979

ชาบู chromium

By: osmiumwo1f
ContributorWindows PhoneWindows
on 18 February 2020 - 14:00 #1148153 Reply to:1147979
osmiumwo1f's picture

ระวังจะเป็นมะเร็งเพราะได้รับ chromium มากเกินไปนะครับ :)

By: port0 on 16 March 2020 - 15:32 #1151395

โอ๊ะ ไม่ Preload ?