Webapp uses the sky map, and the mobile phone opens the part involving the map, which opens slowly, causing the page to stutter. Is there any good solution?

WEBAPP has a requirement to load the map and display events on the map, and the function has been done, but because every time you load a page related to the map, you need to load the sky map, but every time you load the heaven and earth map, there will be a problem, either causing the page to stutter as shown in figure 1, or loading all the time. I would like to ask if there are any solutions or ideas.

Mar.13,2021

solution:
the heaven and earth map js file is loaded after the page dom rendering is finished. You can choose to dynamically introduce the heaven and earth map js file into the page js, so that the page stutter will not occur.

Menu