79121134

Date: 2024-10-24 09:01:30
Score: 1.5
Natty:
Report link

When creating all layers previously, you are going to have a smoother user experience, without the need of wait to load, and potential flickering.

The issue is that if the user dont necessarily need all layers, that means if he is not going to view all and still have to download and load all the data, it can cause an unnecessary usage of memory and cpu (and battery if the user is in a mobile phone).

So you have a trade off here, between pre-loading everything and having a smoother UX, or loading only when necessary, saving some computering costs but it can have some flickering or waiting time to load the data depending on the size of it.

About the opacity vs visibility question, visibility generally costs less to set than opacity, as changing the layout is faster than the paint in most cases.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Ricardo Weiss