Skip to content

Change functionality of delayLoad? #37

@abohannon

Description

@abohannon

Out of curiosity, was there a particular reason scroll and route changes were chosen as triggers for script load? My usecase needs to delay the load of the script for performance reasons, but an idle pageview is still valuable to us to accurately assess bounce rates.

Is it worth creating an option to listen to load instead of scroll? If so, I'm happy to submit a PR if the community thinks it would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions