Skip to content

Conditionally eager load #1

Description

@s3ththompson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions