Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 2|回復: 0

The same guy you hire to do your

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2024-1-29 15:24:20 | 顯示全部樓層 |閱讀模式
The basic idea is to leverage web workers to define which scripts will load in sequence vs. which may load in parallel. While you can force JavaScript to load in parallel, doing this by default is extremely inadvisable. Integrating technology such as this would largely mitigate the need for SSR in most cases. However, it will be very fiddly to implement and will require (you guessed it!) the time of a senior web developer.  full JavaScript code audit might be able to help you with this, too. If you combine JavaScript parallelization with a critical JavaScript rendering path, then you’re really flying.

In this example, here’s the really interesting thing: Image 97 You DB to Data immediately see that whilst the main thread is occupied for 17 seconds, JavaScript execution accounts for 12 seconds. Does that mean 12 seconds of the 17 seconds of thread work are JavaScript execution? That is highly likely. We know that all JavaScript is pushed through the main thread by default. That’s also how WordPress, the active CMS, is set up by default. Since this site is running WordPress, all of those 12 seconds of JavaScript execution time likely come out of the 17 seconds of main thread work. That’s a great insight because it tells us that most of the main processing thread’s time is spent executing JavaScript.



And looking at the number of referenced scripts, that’s not hard to believe. Taking the crusade to Chrome Dev Tools It’s time to get technical and remove the training wheels. Open a new instance of Chrome. You should open a guest profile to ensure there’s no clutter or enabled plugins to bloat our findings. Remember: perform these actions from a clean guest Chrome profile. Image 98 Load up the site you want to analyze. In our case, that’s TechCrunch. Accept cookies as needed. Once the page is loaded, open Chrome DevTools (right-click a page and select Inspect). Image 99 Navigate to Performance > Screenshots.


回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|GameHost抗攻擊論壇

GMT+8, 2025-5-19 17:34 , Processed in 0.813297 second(s), 19 queries .

抗攻擊 by GameHost X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |