bigstockbusinessmanflyingsuperfast85436978100678866orig

Vue.js JavaScript framework revs up rendering

Vue.js, which has been positioned as a rival to Facebook's popular React JavaScript library, has moved to a 2.0 release, featuring a redone rendering layer for better performance. The framework also is set to get a push in the mobile realm.

The upgrade to Vue, a JavaScript framework for building UIs, has a rendering layer that was rewritten using a lightweight virtual DOM implementation forked from the snabbdom library.

"On top of that, Vue's template compiler is able to apply some smart optimizations during compilation, such as analyzing and hosting static sub trees to avoid unnecessary diffing on re-render," Evan You, who has been the principal developer of Vue, said. "The new rendering layer provides significant performance improvements compared to v1 and makes Vue 2.0 one of the fastest frameworks out there." Also, version 2.0's template syntax remains mostly compatible with 1.0 with minor deprecations, said You.

The upgrade supports server-side rendering, along with streaming and component-level caching, for fast renders. Libraries and tools including vue-router, vuex, vue-loader, and vueify have updated to support version 2.0. Vue core, vue-router and vuex 2.0, for state management, all have TypeScript typings shipped in npm packages. The Vue team has provided a migration guide and a CLI migration helper.

You also said engineers at Chinese e-commerce company Alibaba were working on a project called Weex, to render components written in a Vue-inspired syntax into a native mobile UI. Eventually, "Vue-inspired" will become "Vue-powered," according to You. "We have started an official collaboration to make Vue 2.0 the actual JavaScript runtime framework for Weex," he said. "This will enable users to write universal Vue components that can be reused across Web, iOS and Android."

IDG Insider

PREVIOUS ARTICLE

« Business transformation proves to be a catalyst for cybersecurity spending

NEXT ARTICLE

Fujitsu considers selling its PC business to Lenovo »
author_image
IDG News Service

The IDG News Service is the world's leading daily source of global IT news, commentary and editorial resources. The News Service distributes content to IDG's more than 300 IT publications in more than 60 countries.

  • Mail

Recommended for You

Trump hits partial pause on Huawei ban, but 5G concerns persist

Phil Muncaster reports on China and beyond

FinancialForce profits from PSA investment

Martin Veitch's inside track on today’s tech trends

Future-proofing the Middle East

Keri Allan looks at the latest trends and technologies

Poll

Do you think your smartphone is making you a workaholic?