Ask coding questions

← Back to all posts
How do you create lag in your browser by creating a repl?
LaneMartin (108)

Hello everyone! I'm trying to experiment with functions to create lag in my browser but all attempts have been failures. Small tips will be apprciated!

Comments
hotnewtop
Coder100 (19280)

why do you want lag?

Lag is commonly created by creating loops, and doing things repeatedly in a short amount of time. Many functions are designed to not cause lag, so setInterval drifts to prevent lag.

MrVoo (190)

You could try a simple while loop...

VulcanWM (3100)

What do you mean lag?

ch1ck3n (2882)

@VulcanWM lag = little apple gorilla

LaneMartin (108)

@VulcanWM Slowness. Longer then usual wait times. Purposefully making your browser slow.

MrVoo (190)

@LaneMartin Basically ddosing yourself with JavaScript or...