Currently (v2.2.0), on client connection, the server sends the top hashtags / mentions data before sending data for the map.
computing top hashtags and mentions iswynchronous and slow, this prevents the map from being rendered until top hashtags / mentions are processed and sent.
Swapping the socket.emit directives so that map data is transmitted before the top hashtags / mentions will allow the map component to be rendered earlier.
A further upgrade can consist in making the computation asynchronous (emit in the callback).
Currently (v2.2.0), on client connection, the server sends the top hashtags / mentions data before sending data for the map.
computing top hashtags and mentions iswynchronous and slow, this prevents the map from being rendered until top hashtags / mentions are processed and sent.
Swapping the
socket.emit
directives so that map data is transmitted before the top hashtags / mentions will allow the map component to be rendered earlier.A further upgrade can consist in making the computation asynchronous (emit in the callback).