pulilab / vue-people

VuePeople lists and connects Vue.JS developers around the world.
https://vuepeople.org
MIT License
172 stars 36 forks source link

Speed improvement: User marker Avatars #118

Closed DonNicoJs closed 5 years ago

DonNicoJs commented 5 years ago

Currently for every marker of the system an L.divicon is generated on page load and then updated / added dynamically during the interaction of the website.

Calculating all the custom icons with all the avatars is the slowest part of the page load.

Since most of the marker are anyhow 'grouped' inside a marker cluster we want to change this approach to:

Hint:

to achieve this the function iconGenerator and getMarkerIcon should be investigated first inside components/MainMap.vue

DonNicoJs commented 5 years ago

Closing this since we implemented a delayed marker icon calculation with the use of: requestIdleCallback