What do you say about speed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What do you say about speed?

Does the animation make the browser lag or anything else in the context of slowing the device.

18th Feb 2017, 12:18 PM
Elvis Peace Ndahayo Rugero
Elvis Peace Ndahayo Rugero - avatar
2 Answers
+ 4
It depends from device to device
13th Jun 2017, 7:26 AM
Bruh
+ 3
Yes, it can... but browsers generally interrupts JS script that becomes too busy, and ask to user if he want let continue or break the execution of the probably problematic script. On the other hand, you can have an enough busy script wich will reduce global performaces, without becoming enough busy for the previous behaviour. Then, it is fully dependant of available memory and processor ressources on client device, and of requierement of the script(s): performing lot of complex calculs to perform a 3D animation will expect more ressources than just moving one box on 2D space... To improve your JS by saving some ressources, make all that you can from your animations using Css3: the render engine run independently of JS scripts, and would be always smoother, as not dependant of presence of activated JS in user browser ;)
19th Feb 2017, 10:09 AM
visph
visph - avatar