[WordPress] 外掛分享: Disable Cart Fragments by Optimocha

首頁外掛目錄 › Disable Cart Fragments by Optimocha
10,000+
安裝啟用
★★★★
4.9/5 分(16 則評價)
193 天前
最後更新
0%
問題解決
WordPress 4.6+ PHP 5.6+ v2.4.1 上架:2019-05-29

內容簡介

Disable Cart Fragments 是一款輕量級的外掛,通過禁用購物車碎片腳本有效地加快您的 WooCommerce 網站速度。當購物車不再為空時,它會重新加載腳本;因此,它只在購物車為空時起作用。

為什麼禁用購物車碎片很重要?

當你的主題顯示購物車內容(例如頂部菜單)時,WooCommerce 會發送 AJAX 請求來檢查購物車並更新購物車總數。這個 AJAX 請求是為了覆蓋緩存插件,這是好的,但它通常需要時間。

Disable Cart Fragments 如何解決此問題?

使用我們的外掛,你可以兼顧兩全:你仍然可以使用緩存插件,當購物車不為空時,還可以更新購物車總數。通過 WooCommerce 購物車 cookie 進行檢查,因此它仍然使用 JavaScript,但不依賴於緩慢的 AJAX 請求。無論您是否使用緩存插件,檢查都會立即進行。多酷啊!

WooCommerce 優化服務

請隨時聯繫我們,讓我們協助您優化 WooCommerce 網站!網址:Optimocha.com

主要功能

禁用 WooCommerce 購物車碎片。
檢查購物車 cookies,如果不為空,則加載購物車碎片腳本,以便仍然更新購物車總數。
帶給你歡樂。(警告:在某些罕見情況下可能不會帶來歡樂。)

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.4.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Disable Cart Fragments by Optimocha」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Disable Cart Fragments is a lightweight plugin which effectively speeds up your WooCommerce website by disabling the cart fragments script. It also enqueues the script back when the cart is not empty anymore; so it only works while the cart is empty.
Why is disabling cart fragments important?
WooCommerce makes an AJAX request to check your cart and update your cart totals in wherever your theme shows cart contents (like the header menu). This AJAX call is made to override caching plugins, which is good, but it generally takes time.
How does Disable Cart Fragments solve the issue?
With our plugin, you have the best of both worlds: You keep using the caching plugin and you still get to update the cart totals when the cart is not empty. This check is made via WooCommerce cart cookies, so it still employs JavaScript but doesn’t rely on slow AJAX requests. The check is made instantly, whether you’re using a caching plugin or not. How cool is that?
WooCommerce Optimization Services
Feel free to reach out to us at Optimocha.com and let us help you optimize your WooCommerce website!
Main plugin features

Disables WooCommerce cart fragments.
Checks the cart cookies and if it’s not empty, loads the cart fragments script so the cart totals are still updated.
Brings you joy. (WARNING: Might not bring joy in some rare cases.)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon