This is one reason I like separate front/back concerns over full-stack: Programmers tend to miss or just not care about progress in the browser because they're more focused on what's challenging to them personally
I always wondered, why is inline onclick considered bad practice? Only because of separation of funtionalities or there are also other reasons? I think that sometimes it can be explicit to know what a button do just by the HTML and a function
Use classes for that, example: jsClickOpenModal, jsInputSetFormatToPhone, etc. onclick is considered an unsafe practice because of Content-Security-Policy. With external scripts you can have safe measures to avoid external JavaScript malware/extensions affecting your website so the users can't blame you if they get hacked.
Shoutout to the 19%!
Thank you❤❤ I didn't know that cross site caching was not a thing anymore
Missed cut at 2:18! :)
I thought that was intentional!😂
This is one reason I like separate front/back concerns over full-stack: Programmers tend to miss or just not care about progress in the browser because they're more focused on what's challenging to them personally
I always wondered, why is inline onclick considered bad practice? Only because of separation of funtionalities or there are also other reasons? I think that sometimes it can be explicit to know what a button do just by the HTML and a function
Use classes for that, example: jsClickOpenModal, jsInputSetFormatToPhone, etc.
onclick is considered an unsafe practice because of Content-Security-Policy. With external scripts you can have safe measures to avoid external JavaScript malware/extensions affecting your website so the users can't blame you if they get hacked.
Wait, what??? I had no idea this wasn't a thing anymore! Second to last nail in the CDN coffin, huh? Only thing going for them now is convenience.