## 備注: 也許會有其他性能問題
## 異步發郵件:

參考:[Improve and Fix Slow Magento 2 Performance Top issues | by Yegor Shytikov | Medium](https://yegorshytikov.medium.com/improve-and-fix-slow-magento-2-performance-top-issues-e00ac2999171)
## js 延遲加載/打包 優化, ?用 magesuite/magepack 方案
[https://github.com/magesuite/magepack](https://github.com/magesuite/magepack)
使用方式:
[https://yegorshytikov.medium.com/magento-2-google-page-speed-insights-performance-optimisation-using-mage-pack-3e074ed9d1da](https://yegorshytikov.medium.com/magento-2-google-page-speed-insights-performance-optimisation-using-mage-pack-3e074ed9d1da)
*****
## 用戶信息section性能:
https://alanstorm.com/understanding-the-limitations-of-sectionsxml/
[https://amasty.com/blog/how-to-use-sections-in-magento-2/](https://amasty.com/blog/how-to-use-sections-in-magento-2/)
Resolving Session Bottleneck in Magento AJAX Requests?: 同步session 堵塞問題:
[https://www.integer-net.com/resolving-session-bottleneck-magento-ajax-requests/](https://www.integer-net.com/resolving-session-bottleneck-magento-ajax-requests/)
*****
### DB 檢查處理 log 日志:
方法:檢查 \_log , \_report ?等表是否很大,清理:
dataflow\_batch\_export,
dataflow\_batch\_import,
log\_customer,
log\_quote,
log\_summary,
log\_summary\_type,
log\_url,
log\_url\_info,
log\_visitor,
log\_visitor\_info,
log\_visitor\_online,
report\_viewed\_product\_index,
report\_compared\_product\_index,
report\_event,
index\_event,
Catalog\_compare\_item.
*****
### 檢查和清理 沒用的 品類和商品,屬性
attributes :Stores > Attributes > Product
[https://onilab.com/blog/magento-admin-back-end-slow/](https://onilab.com/blog/magento-admin-back-end-slow/)
*****
### 圖片lazyload實現
可以嘗試方案:[https://github.com/aFarkas/lazysizes](https://github.com/aFarkas/lazysizes)
*****
### **字體資源****問題**

解決方案1:
參考:
[**https://onilab.com/blog/magento-google-pagespeed-insights-optimization-guide/**](https://onilab.com/blog/magento-google-pagespeed-insights-optimization-guide/)
解決方案2:用google font api
[https://www.webfx.com/blog/web-design/google-font-api-guide/](https://www.webfx.com/blog/web-design/google-font-api-guide/)
https://medium.com/@ssniranga/how-to-add-google-font-to-magento2-98908b7e396e
[https://blog.petehouston.com/add-google-fonts-to-theme-in-magento-2/](https://blog.petehouston.com/add-google-fonts-to-theme-in-magento-2/)
*****
### configurable-product-performance

參考文章:
[https://yegorshytikov.medium.com/magento-2-configurable-product-performance-profiling-a81696a2848e](https://yegorshytikov.medium.com/magento-2-configurable-product-performance-profiling-a81696a2848e)
*****
### 事件觀察者
[https://magento.stackexchange.com/questions/298020/magento-cataloginventory-observer-quantityvalidatorobserver-slow-performance](https://magento.stackexchange.com/questions/298020/magento-cataloginventory-observer-quantityvalidatorobserver-slow-performance)
**這事件和監聽 ,檢查是不是可以去掉, 商品列表頁 執行太多次數**
**magento\_catalog\_api\_data\_productinterface\_load\_after**
**\-》****Magento\\Framework\\EntityManager\\Observer\\AfterEntityLoad**
**\-》****catalog\_product\_load\_after**
**\-》****Magento\\CatalogInventory\\Observer\\AddInventoryDataObserver**
檢查和去掉無用的事件監聽
解決方案:

結果:
