6 Tips for optimizing your website with JavaScript

Поділитися
Вставка
  • Опубліковано 31 тра 2024
  • JavaScript is commonly used to build modern websites to create richer, more engaging experiences for users. It’s also a common source for website performance issues. In this episode of Ecommerce Essentials, Alan Kent - Developer Relations Engineer - speaks to six tips related to JavaScript libraries and frameworks that can help improve your ecommerce site.
    Chapters:
    0:00 - 1:58 Intro
    1:58 - 3:55 Tip #1: Avoid JavaScript file proliferation
    3:55 - 5:11 Tip #2: Avoid excessive DNS lookups
    5:11 - 6:48 Tip #3: Eliminate inefficient JavaScript
    6:48 - 8:18 Tip #4: Eliminate unused JavaScript
    8:18 - 9:06 Tip #5: Compress JavaScript files
    9:06 - 10:35 Tip #6: Set appropriate cache durations for JavaScript code
    10:35 - 11:20 Wrap up
    URL’s:
    PageSpeed Insights → goo.gle/3MTYJpX
    Preconnect to required origins → goo.gle/3840z9i
    Intervening against document.write() → goo.gle/3KVPh46
    Reduce JavaScript payloads with tree shaking → goo.gle/3FlzbQe
    Watch more episodes of Ecommerce Essentials → goo.gle/EcommerceEssentials
    Subscribe to the Google Search Central Channel → goo.gle/SearchCentral
    #EcommerceEssentials #JavaScript
  • Наука та технологія

КОМЕНТАРІ • 21

  • @Surefire99
    @Surefire99 2 роки тому

    Is the info starting a 4:55 accurate? I thought top-level origins no longer share caches for sub-resources?

  • @sabuein
    @sabuein Рік тому +1

    Thank you, Alan.

  • @Deryacikk
    @Deryacikk 2 роки тому +3

    Thanks for the brief info.

  • @BrendaMalone
    @BrendaMalone 2 роки тому +1

    very cool, thanks, Alan.

  • @janvavra4004
    @janvavra4004 2 роки тому +4

    thank you for this video :) there is a typo, at 3:41 - webback

    • @mushroomcraft
      @mushroomcraft 2 роки тому +1

      same with 0:50 in the code it says "Hooray!" but on the button it says "Horray!"

    • @GoogleSearchCentral
      @GoogleSearchCentral  2 роки тому +2

      Thank you for pointing those out! Both have since been updated.

    • @nhungnhung8598
      @nhungnhung8598 2 роки тому

      @@mushroomcraft ui5t6+v4445

  • @Adrinslim
    @Adrinslim 2 роки тому +2

    When are you going to optimize AdSense JS?

    • @wishmesh
      @wishmesh 2 роки тому

      LOL, you hit the nail on the head 👍

  • @jamal4579
    @jamal4579 2 роки тому

    why adsense js make web very long to load ?

  • @crimsonorc
    @crimsonorc 2 роки тому +1

    Horray!

  • @a1xon
    @a1xon 2 роки тому +3

    There are some weird little things that are slightly wrong that I guess the person who wrote this text is not a javascript developer. like webback? treeshaking is a technique to identify unused js? this is clearly nitpicking but hearing that from google sounds really strange.

    • @ZeroDueDsgn
      @ZeroDueDsgn 2 роки тому

      I can see the typo, but what's wrong with the tree-shaking?

    • @a1xon
      @a1xon 2 роки тому

      @@ZeroDueDsgn Treeshaking is a technique to import only javascript code that is actually used - it's not a analysis it's the solution.

    • @a1xon
      @a1xon Рік тому

      @@alankent809 Nevermind this is clearly nitpicking as I said. Thanks for all the good content :)

  • @ckideastrailers3321
    @ckideastrailers3321 2 роки тому

    Please why is my articles disappearing and reappearing on Google search results?. Please help.

  • @munnasiddiqui0007
    @munnasiddiqui0007 2 роки тому +2

    Ok sir thanks im applying,
    JavaScript best programming language

  • @Saimon1985
    @Saimon1985 2 роки тому

    @Wix