Will jQuery ever use HTML5 technology?

In an attempt to switch to HTML5, do I have to abandon jQuery or run a port to move jQuery to HTML5?

For example, does jQuery have animations like SlideDown, SlideUp, etc. that don't use HTML5 for animations? Would HTML5 be more optimal?

+2
source share
5 answers

jQuery works great with HTML5.

+23
source

Maybe it's time to beat Babbage here.

I cannot correctly understand the confusion of ideas that could provoke such a question.

Although your comments help:

Ok, but JQUERY has animations like SlideDown, SlideUp etc ... that don't use HTML5 for animations? Wouldn't HTML5 handle this more optimally?

Technically, HTML5 does not include animation - theyre in CSS 3, not HTML5. However, some people (such as Apple) seem to use the term β€œHTML5” as a synonym for β€œcool new things that are not yet supported by all browsers,” and CSS Animations certainly fall into this camp.

jQuery can actually use CSS animations in browsers that support them to speed up its animation features, such as slideDown , and can do so in a future version. JQuerys creator John Resig discusses some possible errors here: http://ejohn.org/blog/css-animations-and-javascript/

But that would be transparent to developers who use jQuery. A framework point, like jQuery, prevents developers from worrying about browser differences. Therefore, of course, there is no need to abandon jQuery just because some new CSS materials are supported by some browsers.

Of course, if you want to write CSS 3 code instead or write a jQuery plugin that uses it, you can do it. But if existing jQuery functions already work for you, there is no point in switching to something else.

+14
source

jQuery is just a DOM manipulation mechanism, the DOMS structure is the same as HTML5, as well as additional namespaces inside dom. but something like canvas is still the same type of object as strong or a , so jQuery would not have any problems with HTML5 , like in X-HTML

for some CSS3 transitions, you can still do the exact same thing inside jQuery.

 $('div.rotateable').click(function(){ $(this).css({webkitTransform:'rotate(360deg)'}); }); 

I can understand your perspectives on this matter, but unfortunately I had no idea about comparative comparisons for direct animations in VS pixels in embedded Webkit animations.

+7
source

I think there are really good reasons for jQuery to use HTML5 and CSS3 functions. In fact, they implement a lot of functions that jQuery already implements, they do it initially. The result will be less code parsing and better resource handling. For example, in javascript 1.6, there are many new functions for navigating and filtering arrays that are faster than using loops; natural drag and drop is certainly faster than jQueryUI; and it's better not to talk about CSS3 animations with GPU support. These and many other things are very valuable for rewriting jQuery. And since, as you said, jquery is a cross browser, I think it would be easy for them to run new functions only in the correct browsers, leaving the old (yes, one ) with the old implementation. I do not see the discussion, this is not a problem.

http://www.html5rocks.com/tutorials/speed/quick/

0
source

What they will not answer if jquery will use OS-specific hardware-accelerated routines; for example, iOS devices have hardware acceleration for the css "translate3d" styles, which are significantly better than using the "translate" ... In fact, the slide effect using translate3d makes any other method look like a bad hack when comparing.

0
source

All Articles