Teaching CSS to a Coder 🙀 (How to Lazy Load Images) @OfficialDevTips
Teaching CSS to a Coder 🙀 (How to Lazy Load Images)  @OfficialDevTips
Uploaded November 2018 | Updated November 2026, 1 day ago
Sponsored by: ForkLift, thanks! Try the most advanced file manager and file transfer client for macOS and use the coupon code DEVTIPS to get 50% off. bit.ly/2IwUBMT

David teaches MPJ about lazy loading images for better mobile performance and the CSS aspect-ratio box padding trick. MPJ is NOT convinced.

Can you solve it in a different way - write that in the comments plz!

Aspect-ratio boxes on CSS Tricks has covered this hack in great extent.
😎 css-tricks.com/aspect-ratio-boxes

To properly access the DOM in React, we should have used refs (thanks to @23luski and @Rela takera in the comments)
☝️ reactjs.org/docs/refs-and-the-dom.html#creating-refs

The editor is called Visual Studio Code and is free. Look for the Live Share extension to share your environment with friends.
💻 code.visualstudio.com

DevTips is a weekly show for YOU who want to be inspired 👍 and learn 🖖 about programming. Hosted by David and MPJ - two notorious bug generators 💖 and teachers 🤗. Exploring code together and learning programming along the way - yay!

DevTips has a sister channel called Fun Fun Function, check it out!
❤️ youtube.com/funfunfunction

#css #hack #reactjs
Teaching CSS to a Coder 🙀 (How to Lazy Load Images)Server-side rendered data fetch in Next.js #4 Building an Online BusinessWhat do () parenthesis and | pipe mean in RegExp? #2 REGEX ULTRA BASICSTHE PLAN #1 Lets build an online business 💰Jaynas 1st time hosting! - DevTips Livestream No.4Synthetic reality - How AI alters perception  #podcast #DevTips #SundayPodcastAnimate a video player! - Part 2URL Parsing with RegEx, createElement and new URL()Elliott Earls -  The Graphic Design Guru, the Captain of the Art Class, the YouTube Yoda himselfWebflow From Scratch – part 2.1 (Dynamic Content)Design + Code – Hour 4.4: A Few Final DetailsWebFlow – with Ran Segall
DevTips |

Teaching CSS to a Coder 🙀 (How to Lazy Load Images)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER