Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split js logic into multiple files specific to concrete pages #2721

Closed
vbaranov opened this issue Sep 22, 2019 · 1 comment · Fixed by #2944
Closed

Split js logic into multiple files specific to concrete pages #2721

vbaranov opened this issue Sep 22, 2019 · 1 comment · Fixed by #2944
Assignees

Comments

@vbaranov
Copy link
Member

vbaranov commented Sep 22, 2019

Problem

Blockscout's js logic is in a single js file (except staking dapp part). It loads synchronously significantly contributing to the page loading time.

Screenshot 2019-09-22 at 22 36 44

Solution

Extract the common part from the client's code logic to load on every page. And split the rest of js logic into multiple files in order to load them only on the pages where it is required. Also, consider a possibility to make some code to load asynchronously, if it is not required for page rendering. The changes should decrease the time of js code loading increasing the speed of pages opening.

@YegorSan
Copy link
Contributor

@vbaranov Hello Victor. I am currently working on this problem. Will try to resolve in the shortest possible terms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants