Refactor page loading stages
From several users feedbacks: sometimes an error occurred while page loading:
`Uncaught TypeError: Cannot set property 'textContent' of null at script.min.js:1`
It probably depends on how the page loads. There is a need for a small investigation.
issue