Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is data-cfsrc in HTML

Tags:

html

What is data-cfsrc attribute of HTML ??

I got it inside an img tag.

Thanks

like image 525
Foysal Vai Avatar asked Dec 05 '25 05:12

Foysal Vai


2 Answers

As Mike W says, any attribute starting data- is an arbitrary data string attached to any element. The data-cfsrc is used by CloudFlare's Mirage feature to lazy-load images to improve website performance.

like image 191
Mark Barnes Avatar answered Dec 11 '25 21:12

Mark Barnes


Any attribute starting data- is an arbitrary data string attached to any element. It can be queried bt Javascript for whatever purpose the designer has in mind.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!