Don't rely on this non-existent optimization

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ •

  • @clevermissfox
    @clevermissfox 11 місяців тому +7

    Shoutout to the 19%!

  • @loweffortdev
    @loweffortdev 11 місяців тому

    Thank you❤❤ I didn't know that cross site caching was not a thing anymore

  • @seiuwatches
    @seiuwatches 11 місяців тому +4

    Missed cut at 2:18! :)

    • @clevermissfox
      @clevermissfox 11 місяців тому +1

      I thought that was intentional!😂

  • @dripcaraybbx
    @dripcaraybbx 11 місяців тому

    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

  • @LorenzoDeNato
    @LorenzoDeNato 11 місяців тому

    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

    • @hetoverseo3887
      @hetoverseo3887 5 місяців тому +1

      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.

  • @jwr6796
    @jwr6796 11 місяців тому

    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.