What Is Google Lighthouse and How to Use It? - Elegant ...

文章推薦指數: 80 %
投票人數:10人

Google Lighthouse is a free, open-source tool that can help you improve your website's speed, performance, and overall experience. Generating ... Pricing WhatIsGoogleLighthouseandHowtoUseIt? PostedonJanuary4,2022byWillMorrisinWordPress|5comments Asawebsiteowner,maximizingyoursite’sSearchEngineOptimization(SEO),accessibility,andperformanceisofutmostimportance.However,totacklethesefactorsasefficientlyaspossible,it’scrucialtoadopttherighttoolsandtechniques.OneofthemostinnovativesolutionsyoucancurrentlyleverageisGoogleLighthouse. Inthispost,we’llintroduceyoutoGoogleLighthouseandhowitworks.Thenwe’llexplainhowyoucanuseittoimproveyoursite. Let’sjumpin! SubscribeToOurYoutubeChannel WhatIsGoogleLighthouse? GoogleLighthouseisafree,open-sourcetoolthatcanhelpyouimproveyourwebsite’sspeed,performance,andoverallexperience.GeneratingLighthousereportsmakesiteasiertoenhancethequalityofyourwebpages. Thereareafewdifferentwaysyoucanusethetool.Youcanrunitvia: ChromeDevTools AChromeextension ANodemodule AwebUserInterface(UI) OnceyousubmitaURLtotheautomatedtool,itwillexecutemultiplepageauditsandcreateareportdetailinghowthepageperforms.Youcanthenusesuggestionsfromtheresultstoimproveyourwebsite. Lighthouseisnotjustfordevelopers.Thetoolissuitableforanysiteownerinterestedinlearningmoreabouttheirwebsite’sperformanceandconcretestepstooptimizeit. HowLighthouseAuditsPages ThemainfocusofLighthouseauditsisGoogle’sCoreWebVitals.Ifyou’reunfamiliar,thesearetheessentialmetricsGoogleusestomeasurewebpages’speedandoverallUserExperience(UX).TheyconsistofLargestContentfulPaint(LCP),FirstInputDelay(FID),andCumulativeLayoutShift(CLS). Inotherwords,usingLighthousehelpsyouseeyourwebsitethesamewaythatGoogledoes.Youcanusetheactionableinsightsitdeliverstooptimizeyourpagesforbettersearchenginerankingresults. TheLighthousereportsconsistoffivecategories: Performance Accessibility SEO Bestpractices Progressivewebapp Italsousesa1to100scoringsystemandtestssitesagainstasimulated3Gconnection.However,thescoresmayvaryovertimebecauseGoogleoftenupdatesitsrankingcriteria.Therefore,you’lllikelywanttostayontopofanyLighthouseupdates. Furthermore,whilesomewhatsimilartoPageSpeedInsights,Lighthouseisnotthesame.Lighthouseoffersamoreholisticpicturethanjustpageperformance(likePageSpeedInsightsdoes). HowtoUseGoogleLighthouse Aswementioned,youcanuseahandfulofworkflowsforLighthouse.Ifyoudon’twanttoinstallanextensionorruncommands,youcanutilizeweb.devorDevTools.Below,we’lltakeyouthroughstep-by-stepinstructionsforeachoption. HowtoRunGoogleLighthouseWithChromeDevTools Togetstarted,you’llfirstneedtodownloadGoogleChrome(ifyouhaven’talready).Onceinstalled,youcanopenanewbrowsertabinChromeandnavigatetothewebpageyouwanttoaudit. Next,right-clickonthepageandselectInspect.Youcanalsoclickonthethreeverticaldotsinthetoprightcornerofthebrowser,thennavigatetoMoretools>Developertools. ThiswillopentheDevToolspaneltotherightortopofthepage.Fromthetoolbar,(1)clickonLighthouse: Notethatifyoudon’tseetheLighthouseoptioninthetoolbar,youmayneedtoclickonthetwoarrowsattheend.OncetheLighthousetoolopens,ensureallfivecategoriesareselected,then(2)chooseGeneratereport. OnceLighthousefinishesrunningtheaudit,itwillbringyoutotheresultsscreen.Thatreportwilllooksomethinglikethis: You’llfindascoreandsectionforeachcategory.Youcanlearnmoreabouteachbyclickingonthescoresatthetopofthepage. Agoodscoreisconsideredanythingbetween50and89.Anexcellentscoreisbetween90and100.Thegoalistoscoresomewhereinthe90and100rangeforeachcategory. HowtoUseGoogleLighthouseWithweb.dev AnotherquickandeasywaytoauditawebpagewithLighthouseisusingweb.dev.Navigatetothispage,thenenterthepageURLyouwanttoaudit: Next,clickontheRunAuditbutton.Afteraminuteortwo,Lighthousewillfinishanalyzingthesiteandbringyoutothereport.Hereyoucanlearnmoreaboutyourscoreandopportunitiesforimprovementineachcategory: Youcanclickoneachcollapsedsectiontoexpanditandlearnmore.Youcanalsoaccessdetailedinformationabouteachcategorybyselectingthecategorynameandscoreatthetopofthereport. HowtoUseGoogleLighthouseWithaChromeExtension Alternatively,youcandownloadandinstalltheChromeExtensionforLighthouse.ThiscouldbeasolidchoiceifyouplanonusingLighthousefrequently. Onceagain,you’llneedtohavetheChromebrowserinstalled.Next,youcannavigatetotheChomeWebStoreandinstalltheLighthouseextension: Aftertheadd-onhasbeeninstalled,restartyourbrowser.Youshouldnowseealighthousesymbolattheendofyouraddressbar.Visitthewebpageyouwanttoaudit,clickonthelighthousesymbol,thenselectGeneratereport: Thisactionwillbringyoudirectlytothereportpage,whereyoucanviewthegradingdetailsofeachcategory.Notethatitmaytakeaminuteortwofortheaudittocomplete. HowtoUseGoogleLighthouseviaNode Ifyou’relookingforconfigurationflexibilitywithLighthouse,youcanalsouseaNodemodule.Thisisamoreadvancedsolution,butitprovidesgreatercontrol. First,you’llneedtoinstallaLongTermsupportversionofNode: Next,youcanrunthecommandlinetoinstallLighthouse: npminstall-glighthouse #oruseyarn: #yarnglobaladdlighthouse Finally,youcanperformtheauditbyusingthefollowingcommand: lighthouse Ofcourse,you’llwanttoreplacethewiththewebaddressofthewebpageyou’retryingtoaudit.YoucanrefertoGitHubtolearnmoreaboutthesourcecode. Conclusion RegularlyauditingyourWordPresswebsiteisessentialforprovidingagoodexperienceforvisitorsandsearchenginesalike.ThankstotoolssuchasGoogleLighthouse,youcanquicklyassessyoursite’sperformance,SEO,andaccessibilityinafewsimplesteps. Aswediscussedinthispost,Lighthouseisafree,automatedtoolforgainingvaluableinsightsintoyourwebpages’performanceandoverallexperience.YoucanuseitbyinstallingaChromeextensionorusingDevToolsdirectlywithinyourbrowser.Thenyoucanutilizethereportstolearnhowtoimproveyoursite. DoyouhaveanyquestionsaboutusingGoogleLighthouse?Letusknowinthecommentssectionbelow! FeaturedImageviaCienpiesDesign/shutterstock.com ByWillMorris WillMorrisisastaffwriteratWordCandy.Whenhe'snotwritingaboutWordPress,helikestogighisstand-upcomedyroutineonthelocalcircuit. ExploreDivi,TheMostPopularWordPressThemeInTheWorldAndTheUltimatePageBuilder LearnAboutDivi CheckOutTheseRelatedPosts HowtoInstallWordPressonAWSWebHosting PostedonApril28,2022byWillMorrisinWordPress Cloudhostingisbecomingincreasinglypopular.Withthisservice,yoursiteishostedonmultiplevirtualservers,whichcanhelpimproveperformanceandmaximizeuptime.AmazonWebServices(AWS)isoneoftheleadingcloudcomputingproviders,soyoumightbewonderinghowtohostyourWordPress... ViewFullPost AWSWebHosting:AReviewforWordPressUsers PostedonApril27,2022byWillMorrisinWordPress Itwouldn’tbeanexaggerationtosaythatAmazonWebServices(AWS)isoneofthefoundationsofthemodernweb.AWShostingisthebiggestplayerinthecloudhostingarena,withover33percentofthemarket.ItsclosestcompetitorisGoogleCloud,whichboastsa21percentmarketshare.... ViewFullPost HowtoIncreaseSiteSpeedUsingSiteGround’sFreeCDN PostedonApril23,2022byLindsayPietroluongoinWordPress Youputmonthsintobuildingyourwebsite.YouspendevenmoretimelearningaboutSEOandhowtocreatevaluable,meaningfulcontentforyourusers.Thenyoufindoutthat,whilepeoplefindyoursiteallthetime,theydon’tstay.Sometimestheyleavewithinseconds.Ahugefactorinusers... ViewFullPost 5Comments Dan January4,2022 OneofthethingsthatmysitegetsconsistentlydingedforisreducingbothunusedjavascriptandCSS.Doyouhaveanytipsforhowtosolvethisproblem?Oranyplansto“fix”/improvethedivithemetoaccountforthissotheappropriatestyle/javascriptsheetsonlyloadonthepagestheyareusedon? upsers January8,2022 willusevianodejs..thanksforthedetails Regine January17,2022 ThanksWill.IamabitconfusedwhythescoresfromLighthousearesodifferenttowhenIrunPageSpeedInsightsonmysite? RegineEndres January17,2022 ThanksWill.IamwonderingwhytheresultsfromLighthousearesodifferenttothePageSpeedInsightsonmywebsite? Christopher January31,2022 Isthereaguidetohowtoreadtheresultsoflighthouseanddirectlyapplythemtowhat’shappeninginDivi? RecentPosts DownloadaFREE404PageTemplateforDivi’sPrintDesignerLayoutPack HowtoInstallWordPressonAWSWebHosting AWSWebHosting:AReviewforWordPressUsers HowtoCreateSubtleBackgroundPatternMaskswithDivi(3Examples) GetaFREEBagelShopLayoutPackforDivi Categories Business Community CustomerSpotlight Design DiviResources Editorial FreebieOfTheWeek GeneralNews Marketing Resources ThemeAdditions ThemeChanges/BugFixes ThemeReleases ThemeSneakPeeks Tips&Tricks WordPress FollowUs Facebook Twitter LinkedIn Dribbble RSS YouTube ColorfulShapes 806,875CustomersAreAlreadyBuildingAmazingWebsitesWithDivi.JoinTheMostEmpoweredWordPressCommunityOnTheWeb SignUpToday Weoffera30DayMoneyBackGuarantee,sojoiningisRisk-Free! Facebook 152k Followers FacebookGroup 70k Members Twitter 63k Followers Newsletter 325k Subscribers Youtube 163k Subscribers Dribbble 6k Followers Divi Features LayoutLibrary LiveDemo DiviMarketplace DiviCloud DiviHosting Products DiviTheme ExtraTheme BloomPlugin MonarchPlugin WordPressThemes WordPressPlugins Resources Documentation HelpArticles&FAQ 24/7Support DeveloperDocs SystemStatus Blog RecentPosts ProductUpdates DiviResources Business WordPress Community DiviMeetups DiviFacebookGroup CommunityForum DiviReviews AffiliateProgram Company AboutUs Careers ContactUs TermsofService PrivacyPolicy Copyright©2022ElegantThemes® JoinToDownloadToday PinItonPinterest



請為這篇文章評分?