CutCodeDown

Web Development => JavaScript => Topic started by: Gary-SC on 29 Dec 2021, 07:19:40 am

Title: Resize Observer: Is it a good idea?
Post by: Gary-SC on 29 Dec 2021, 07:19:40 am
"Learn Resize Observer In 5 Minutes" (5:47)
https://www.youtube.com/watch?v=M2c37drnnOA

Do you think it is a good idea? Why or why not?
Title: Re: Resize Observer: Is it a good idea?
Post by: coothead on 29 Dec 2021, 09:52:34 am
Quote from: Gary-SC
Do you think it is a good idea?
Why or why not?


coothead
Title: Re: Resize Observer: Is it a good idea?
Post by: coothead on 29 Dec 2021, 11:24:46 am
Hi there Gary-SC,

here is a simple CSS example...

Full Page View
https://codepen.io/coothead/full/LYzQWEX (https://codepen.io/coothead/full/LYzQWEX)

Editor View
https://codepen.io/coothead/pen/LYzQWEX (https://codepen.io/coothead/pen/LYzQWEX)

coothead
Title: Re: Resize Observer: Is it a good idea?
Post by: Jason Knight on 29 Dec 2021, 04:12:15 pm
That he had the cojones to call scripttardery for layout "performant" alone should set off your bullshit alarm.

Good rule of thumb? If you HAVE to use Javascript to control your layout, you probably don't know how to use CSS to build layouts, or are doing the type of garbage that shouldn't be on a website -- or web app -- in the first place!

But then that his "really basic HTML" has the X-UA set to edge bullshit, a lack of media targets on the stylesheet, and he put blocking script in the HEAD really should tell you all you need to know about this kid's qualifications to even flap his yap about it.

And yes, kid, as in "Old movie? Christ Tony how old is this kid?"
Title: Re: Resize Observer: Is it a good idea?
Post by: Gary-SC on 15 Jan 2022, 07:37:37 pm
Thank you all for your insights. I had a gut feeling that it was a BS idea, but I wanted to consult with others who know better.