Jquery released the first beta version of the brand new version 1.8 ,:
Http://code.jquery.com/jquery-1.8b1.js
At present, more than half of the world's largest websites are using jquery. This is a huge success, but we cannot be excited because in the past few years, the browser has undergone incredible changes, and web development must constantly adapt to this change. jquery should continue to develop to support this change.
Jquery 1.8 is a new milestone version. The main features of this version include:
1. Modularization
You can build a custom jquery version as needed, including one or more modules you want. You can use the grunt tool to implement this function. Jquery's modules include Ajax, CSS, dimensions, effects, and offset. If you do not need some optional modules, the jquery compression is only about 21 kb.
2. Support the CSS prefix attribute of the browser
For example, if $ ("# myscroll"). CSS ("marquee-direction", "backwards") is executed on the Chrome browser, the final result is-WebKit-marquee-direction: backwards
3. Support for animation (special effects)
Previous versions of jquery are a mess in animation processing. version 1.8 restructured and cleans up this part, and now it is easy to add the animation function, however, the current beta1 version mainly ensures that the restructured code can work.
4. refactor the CSS selector engine-Sizzle
The reconstructed sizzle further improves the performance.
5. prevent cross-site scripting (XSS) Attacks
6. Discard the API
For details about these improvements and the actual improvement records, see the official release notes.