章節連結
當你的網頁端畫面有多次觸發重繪 re-paint 的行為,那你就有機會在 F12 的瀏覽器開發內,看見 ResizeObserver loop limit exceeded 錯誤。這邊筆記下處理方式。
內容
將下列函式於 main.ts 中引入,目的是將原有的 window.ResizeObserver 給加上 debounce
按讚加入粉絲團點數旅行 留學 信用卡 程式學習
當你的網頁端畫面有多次觸發重繪 re-paint 的行為,那你就有機會在 F12 的瀏覽器開發內,看見 ResizeObserver loop limit exceeded 錯誤。這邊筆記下處理方式。
將下列函式於 main.ts 中引入,目的是將原有的 window.ResizeObserver 給加上 debounce
按讚加入粉絲團