iotex-desktop-wallet icon indicating copy to clipboard operation
iotex-desktop-wallet copied to clipboard

improve perf of explorer

Open guo opened this issue 4 years ago • 8 comments

  • profiling the page.
  • identify the bottleneck.
  • improve.

guo avatar Jul 23 '20 22:07 guo

it takes about 7s now to load the complete page.

guo avatar Jul 23 '20 22:07 guo

@guo , which page exactly? Or should I do profiling all pages?

altbee avatar Jul 27 '20 16:07 altbee

the landing page of iotexscan.io

raullenchai avatar Jul 27 '20 16:07 raullenchai

ok

altbee avatar Jul 27 '20 16:07 altbee

@raullenchai , @guo , it's using SSR, so can't profiling using React DevTools

altbee avatar Jul 31 '20 15:07 altbee

#1447 improved loading speed by 1.5s from 7s reduced to 5.5s.

After profiling, the following assets are not in CDN yet. Let's add them to CDN. image

guo avatar Aug 04 '20 00:08 guo

Please note that the cached files need to marked as dirty each time during release. (so need to add a hash to the name file.)

guo avatar Aug 04 '20 00:08 guo

please use cdn.iotexscan.io. it has been set up.

guo avatar Aug 04 '20 00:08 guo