What will be faster than Flash or Javascript?

I have an idea for a website that includes a canvas area that has no size restrictions. Basically, you can add elements to the canvas (notes, photos in fact). Then you could drag the canvas that would move these objects along with the canvas until they disappear from the screen. If you pulled the canvas back, they will reappear.

Question: What would be best suited for this type of thing, Flash or Javacsript?

My main concerns are the speed with which javascript / flash can handle the movement of several elements around the screen in the order described above. Which language is best for the user on a slow machine.

UPDATE:

Thanks for your opponents, but to clarify what are the advantages of a canvas over direct jQuery DOM manipulation? or vice versa. I have never used canvas before.

+3
source share
5 answers

I don’t think this is a question that will give you an objective answer - Flash developers will tell you that Flash is better, web developers will tell JavaScript. Trying to remain objective, I would say that both technologies are suitable for what you describe, but have different advantages.

Flash will certainly display faster, even on slower machines, and much richer graphically.

JavaScript is more accessible and works on more devices. However, use a good JS structure.

+4
source

, Javascript - Google, , , .

+2

, , , javascript DOM. , , -. exCanvas IE, .

+1

- , , Javascript. , . , DHTML. , IE.

javascript; jQuery . . javascript-engine ( Webkit (Squirrelfish Extreme) Mozilla (TraceMonkey) ), .

, , , John Resig processing.js.

+1

, ( DOM, ). :

  • (, , , ..), DOM. , .

  • Canvas IE. IE- (VML), -, .

  • DOM , , ( ), , .

  • Flash , , .

  • Flash DOM , canvas .

  • Flash , DOM canvas, , -.

+1

Source: https://habr.com/ru/post/1698031/


All Articles