All Projects → SmallComfort → Vue Ssr Jit

SmallComfort / Vue Ssr Jit

Licence: mit
A just in time compilation technique for server-side rendering

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Vue Ssr Jit

Minijit
A basic x86-64 JIT compiler written from scratch in stock Python
Stars: ✭ 185 (-11.48%)
Mutual labels:  jit
Celestite
Beautifully reactive, server-side rendered Svelte apps w/ a Crystal backend
Stars: ✭ 185 (-11.48%)
Mutual labels:  ssr
Ssr subscrible tool
SSR节点订阅地址生成器
Stars: ✭ 198 (-5.26%)
Mutual labels:  ssr
React Lazy Hydration
Lazy Hydration for Server Rendered React Components
Stars: ✭ 187 (-10.53%)
Mutual labels:  ssr
Laser
The HPC toolbox: fused matrix multiplication, convolution, data-parallel strided tensor primitives, OpenMP facilities, SIMD, JIT Assembler, CPU detection, state-of-the-art vectorized BLAS for floats and integers
Stars: ✭ 191 (-8.61%)
Mutual labels:  jit
Sgo
A dev server for rapid prototyping. Setting a directory to a static server.It provides a 404 neat interface for listing the directory's contents and switching into sub folders.
Stars: ✭ 194 (-7.18%)
Mutual labels:  ssr
React Ssr Boilerplate
Boilerplate for React apps with routing, code splitting, & server side rendering
Stars: ✭ 183 (-12.44%)
Mutual labels:  ssr
Blog Frontend Project
Web frontend code for my blogs, develop with Vue.
Stars: ✭ 206 (-1.44%)
Mutual labels:  ssr
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+991.39%)
Mutual labels:  ssr
Aleph.js
The Full-stack Framework in Deno.
Stars: ✭ 3,448 (+1549.76%)
Mutual labels:  ssr
Ssssrv2rayclashtrojan
科学上网,ss, ssr, v2ray, trojan, clash, clashr,翻墙机场推荐
Stars: ✭ 186 (-11%)
Mutual labels:  ssr
Awesome Vpn
Free VPN/proxy,server,account,link list.,实时更新免费的代理,科学上网,翻墙,梯子,服务器,客户端,账号
Stars: ✭ 2,691 (+1187.56%)
Mutual labels:  ssr
Next Firebase Ssr
An Next.js example repo for building authenticated pages with Firebase Authentication, cookies, and getServerSideProps
Stars: ✭ 192 (-8.13%)
Mutual labels:  ssr
Fq Book
📖《这本书能让你连接互联网》详细阐述代理、隧道、VPN运作过程,并对GFW策略如:地址端口封锁、服务器缓存投毒、数字验证攻击、SSL连接阻断做相关的原理说明
Stars: ✭ 2,393 (+1044.98%)
Mutual labels:  ssr
Next Routes
Universal dynamic routes for Next.js
Stars: ✭ 2,354 (+1026.32%)
Mutual labels:  ssr
Vue Gates
🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
Stars: ✭ 184 (-11.96%)
Mutual labels:  ssr
V2raycloudspider
采集免费、优质的机场订阅连接;科学上网,从娃娃抓起!/SSR/V2RAY/TROJAN/SPIDER
Stars: ✭ 189 (-9.57%)
Mutual labels:  ssr
Mordred
[Experimental] Source data from anywhere, for Next.js, Nuxt.js, Eleventy and many more.
Stars: ✭ 208 (-0.48%)
Mutual labels:  ssr
React Ssr
React 服务端渲染(SSR),react + redux + koa2 + sequelize + mysql全栈项目(Full Stack)
Stars: ✭ 205 (-1.91%)
Mutual labels:  ssr
Accounts Ui
Accounts UI for React in Meteor 1.3+
Stars: ✭ 197 (-5.74%)
Mutual labels:  ssr

vue-ssr-jit

中文

A just in time compilation technique for server-side rendering. Use the Diff algorithm to derive dynamic and static nodes at runtime, and then generate and run a new rendering tree to dramatically increase rendering performance.

The following vue template:

<template>
  <div>
    <router-link to="/">{{name}}</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: 'vue-ssr-jit'
    }
  }
}
</script>

Code generated by the official compiler:

_c("div", [
  _c("router-link", {attrs: { to: "/" }}, [
    _vm._v(_vm._s(_vm.name))
  ]),
  _c("router-view")
], 1)

Code generated using vue-ssr-jit:

_c("div", [
  _vm._ssrNode(
    "<a href=\"/\" class=\"router-link-active\">vue-ssr-jit</a>"
  ),
  _c("router-view")
], 1);

Use

npm install --save vue-ssr-jit
const { createBundleRenderer } = require('vue-ssr-jit')

createBundleRenderer is consistent with the official function interface of the same name, see the vue ssr guide

It is recommended to use serverPrefetch for prefetching data, and it is also supported to use asyncData for prefetching data, see demo

Implementation principle

Vue SSR Just In Time Compilation

Be careful

This technology is currently in the experimental stage.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].