Skip to content

Varied trickle speed config option #29

Closed
@mariovisic

Description

@mariovisic

Hi Rico

Thanks for the great library. I've been playing around with it a turoblinks website. One cool thing that I would like to try out is a variable or random trickle speed.

Currently when you watch the progress bar it always updates at the interval, so if the interval is one second every second the progress bar moves a varied amount which doesn't seem 100% natural. Especially for longer requests where it moves say 3-4 times.

I think it would be nice to have the option to have a varied trickle speed, so setting to to 1000ms means that a random number will be used, maybe Math.random() * Settings.trickleSpeed or Math.random() * Settings.trickleSpeed * 2

I realise you might not want to bloat up the library if it can be avoided, but it should only be 4-5 line at most and an extra config option.

Let me know what you think, if all good then i'll send you a patch with the code and documentation :)

Cheers

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