內容簡介
**摘要:** 使用 WordPress 外掛可以將 Tweets 或 Xeets 嵌入到網站中,節省 500kb 的頁面加載量。這可以透過靜態預渲染來實現。
### 問題與答案:
- **問題 1:** 這個外掛可以幫助網站節省多少頁面加載量?
- **答案:** 這個外掛可以幫助網站節省 500kb 的頁面加載量。
- **問題 2:** 使用這個外掛可以不使用哪些東西?
- **答案:** 使用這個外掛可以不使用 Twitter/X 的 cookies、追踪、JavaScript 等。
- **問題 3:** 這個外掛使用了什麼服務來解析 Tweets?
- **答案:** 這個外掛使用了 Vercel 主機上的服務來解析 Tweets。
- **問題 4:** 連接到 Vercel 的服務時,需要同意什麼?
- **答案:** 連接到 Vercel 的服務時,需要同意其隱私政策和條款。
外掛標籤
開發者團隊
② 後台搜尋「Static Posts for Twitter – Embed x.com Tweets without an iframe」→ 直接安裝(推薦)
原文外掛簡介
The standard Tweet, or Post (or Xeet?), loads in 500kb of front end JavaScript, tracking cookies, and lots of noise. This plugin avoids all of that by pre-rendering the entire Tweet statically. Say goodbye to bulky Tweets!
https://github.com/KevinBatdorf/wp-xeet
Features
Embed a Tweet/Post/Xeet without an iframe
Save 500kb of page load
No Twitter/X cookies, tracking, JavaScript, etc
Static – Twitter/X changes won’t affect your site
Dark/light auto mode
Vercel
The Tweets are parsed on a server hosted on Vercel. Using this service, and thus connecting to their servers, you agree to their privacy policy and terms.
NOTE: Your frontend does not rely on any api calls, and if the Vercel api shuts down tomorrow, your site will not be affected in any way.
