6 Tips for optimizing your website with JavaScript

  Рет қаралды 14,052

Google Search Central

Google Search Central

Күн бұрын

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
@sabuein
@sabuein 2 жыл бұрын
Thank you, Alan.
@Surefire99
@Surefire99 2 жыл бұрын
Is the info starting a 4:55 accurate? I thought top-level origins no longer share caches for sub-resources?
@Deryacikk
@Deryacikk 2 жыл бұрын
Thanks for the brief info.
@BrendaMalone
@BrendaMalone 2 жыл бұрын
very cool, thanks, Alan.
@crimsonorc
@crimsonorc 2 жыл бұрын
Horray!
@janvavra4004
@janvavra4004 2 жыл бұрын
thank you for this video :) there is a typo, at 3:41 - webback
@mushroomcraft
@mushroomcraft 2 жыл бұрын
same with 0:50 in the code it says "Hooray!" but on the button it says "Horray!"
@GoogleSearchCentral
@GoogleSearchCentral 2 жыл бұрын
Thank you for pointing those out! Both have since been updated.
@nhungnhung8598
@nhungnhung8598 2 жыл бұрын
@@mushroomcraft ui5t6+v4445
@Adrinslim
@Adrinslim 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 ?
@a1xon
@a1xon 2 жыл бұрын
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 :)
@munnasiddiqui0007
@munnasiddiqui0007 2 жыл бұрын
Ok sir thanks im applying, JavaScript best programming language
@ckideastrailers3321
@ckideastrailers3321 2 жыл бұрын
Please why is my articles disappearing and reappearing on Google search results?. Please help.
@user-xg9ul5bf2v
@user-xg9ul5bf2v Жыл бұрын
57
@ckideastrailers3321
@ckideastrailers3321 Жыл бұрын
@@alankent809 no problems on my search console.. All my pages are being indexed
@Saimon1985
@Saimon1985 2 жыл бұрын
@Wix
Eliminate inefficient JS using PageSpeed Insights #Shorts
0:35
Google Search Central
Рет қаралды 10 М.
How to optimize images for your ecommerce website (6 tips)
14:03
Google Search Central
Рет қаралды 21 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 125 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 6 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 7 МЛН
Wordpress vs coding - why devs SHOULD learn Wordpress
11:03
SuperSimpleDev
Рет қаралды 281 М.
JavaScript Loops - Code This, Not That
8:36
Fireship
Рет қаралды 345 М.
Structured data for web developers
8:31
Google Search Central
Рет қаралды 59 М.
How to make your ecommerce website mobile friendly (8 Tips)
15:37
Google Search Central
Рет қаралды 10 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 223 М.
How to improve Cumulative Layout Shift for a better page experience
18:24
Google Search Central
Рет қаралды 44 М.
Looking Under the Hood of JavaScript
6:34
ThePrimeagen
Рет қаралды 177 М.
The past, current state & future of JavaScript frameworks
8:19
Academind
Рет қаралды 118 М.
5 Tips for Writing BETTER For Loops in JavaScript
16:15
James Q Quick
Рет қаралды 70 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 1,5 МЛН
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 9 МЛН
Какой ПК нужен для Escape From Tarkov?
0:48
CompShop Shorts
Рет қаралды 267 М.