buidl-labs / polkaviz

Visualization efforts on the Polkadot Network!
https://polkavizproject.surge.sh/
2 stars 3 forks source link

Improve Overall loading speed of the kusama main viz #45

Open sahilnanda1995 opened 4 years ago

sahilnanda1995 commented 4 years ago

validators loading speed has increased but it has damaged the intention loading.

bhaskarSingh commented 4 years ago

For improving first-time loading speed, polkadot api needs to be removed from client side as its self has a bundle size of 1.9 MB and after gzip, 600kbs approx since browser has to download then uncompress this heavy npm dependency, other than that kusama viz load time has been improved till the usable state
for reference: https://bundlephobia.com/scan-results?packages=@polkadot/api@1.0.0-beta.15,bs58@4.0.1,konva@3.4.1,react@16.8.6,react-dom@16.8.6,react-konva@16.8.7-3,react-number-format@4.2.0,react-router-dom@5.0.1,react-spring@8.0.27,typescript@3.6.3