It would be nice to allow sub classes to conditionally opt in to eager loading. I generally like to eager load images with an on-idle callback if the device has network speed greater than a certain value. I'm imagining something like this:
eagerEnter () {
var connection = navigator.connection
return (connection.type !== 'cellular')
}
WDYT? In general how do you balance eager loading for (perceptually) instant loading vs. lazy loading for efficiency's sake?
It would be nice to allow sub classes to conditionally opt in to eager loading. I generally like to eager load images with an on-idle callback if the device has network speed greater than a certain value. I'm imagining something like this:
WDYT? In general how do you balance eager loading for (perceptually) instant loading vs. lazy loading for efficiency's sake?