Live Mấy thằng Dev Xam code như hạch

newbie3

Già trâu
Abkhazia
Tao thấy lướt Xam tốn pin quá nên có điều tra thì kết quả như sau:

1. Network Activity Cao (Nguyên Nhân Chính: Tốn Pin Do Radio/WiFi)
Tổng: 1.589 network events (requests/responses)>> quá lớn cho một page load, có thể giữ network radio hoạt động lâu (~ vài giây)
Top URLs lặp lại:

2. JavaScript Execution quá nhiều executions

3. Rendering, Painting & Animations (GPU/CPU Usage)​

  • Tổng thời gian paint/composite/raster: ~0.28 giây.
  • Animation events: 1.430 >> rất nhiều CSS animations / requestAnimationFrame loops
  • Top events:
    • Layout: 32.2ms – Layout DOM (dirty objects: 4361/4517), contents height 2166px, quads lớn (0-1080x2012)>> Page dài, nhiều elements gây reflow.
  • Đoạn code gây: CSS keyframes / JS requestAnimationFrame trong core-compiled.js

Sửa mấy cái này trc khi make Xam great again
 
Tao thấy lướt Xam tốn pin quá nên có điều tra thì kết quả như sau:

1. Network Activity Cao (Nguyên Nhân Chính: Tốn Pin Do Radio/WiFi)
Tổng: 1.589 network events (requests/responses)>> quá lớn cho một page load, có thể giữ network radio hoạt động lâu (~ vài giây)
Top URLs lặp lại:

2. JavaScript Execution quá nhiều executions

3. Rendering, Painting & Animations (GPU/CPU Usage)​

  • Tổng thời gian paint/composite/raster: ~0.28 giây.
  • Animation events: 1.430 >> rất nhiều CSS animations / requestAnimationFrame loops
  • Top events:
    • Layout: 32.2ms – Layout DOM (dirty objects: 4361/4517), contents height 2166px, quads lớn (0-1080x2012)>> Page dài, nhiều elements gây reflow.
  • Đoạn code gây: CSS keyframes / JS requestAnimationFrame trong core-compiled.js

Sửa mấy cái này trc khi make Xam great again
Dăm ba cái web mà cũng tốn pin à?
 

Có thể bạn quan tâm

Top