jquery - How well does JavaScript scale? -
I was working on this carousel thing, using it. It works very well with some images, using Mootools. However when I added 70 photos (around 30k each) then it stopped working well. Spending some time poking around in the code of iCarousel it looked very nice and stable. So it started thinking to me: Does the script (which is overflow: hidden
div), animates the devices in Moto, Firefox on Ubuntu, or can not handle javascript too much? If so, how much is it?
I think it's hard to say, but it would be really good to know that Javascript will be sluggish and useless, before it's preferably developed.
In addition to other answers, I will tell you with a hard experience which combines DOM elements in the browser like the canvas tag Direct drawings are actually really slow compared to APIs. In the bridge between JavaScript and DOM, there is not only too much overhead, but also every feature changes in the browser.
There are ways around something like this, such as ensuring that your animated extents are performing: complete set in their CSS (thus eliminating the need to take them out of the document flow, reffling ) And in your code to make sure when you really need to change, you will only touch the Dome.
A DOM document segment can be tampered with, and then inserted into the dom, and it is much faster than manipulating a portion of the dom displayed on the screen.
And also mention event handling stuff other people.
Javascript scaling? Yes, yes, can it scaling browser dome? Not likely that future browsers will be better at this.
Comments
Post a Comment