Vue

v3.5.44

Progressive framework for building user interfaces, usable without a build step.

Quick start

Add this tag to your page. Place it just before the closing </body> tag, or in the <head> with the defer attribute.

HTML
<script src="https://jscdns.net/libs/vue/3.5.44/vue.global.prod.js"
        integrity="sha384-tORx0bXmMnTC28EYQe1coaGZKSQupXQEYDBNex8xkzJ9iqUoNy9Y+VFBhVxi4kUr" crossorigin="anonymous"></script>

Files

FileSizeCopy
vue.global.prod.jsScript 166.6 KB
vue.global.jsScript 587.6 KB
vue.esm-browser.prod.jsES module 171.3 KB
vue.runtime.global.prod.jsScript 108.6 KB

Usage

Complete example

A minimal page that loads Vue and uses it. Copy it into a file and open it in your browser.

example.html
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
</head>
<body>
  <div id="app">
    <p>{{ message }}</p>
    <button @click="count++">Count is {{ count }}</button>
  </div>

  <script src="https://jscdns.net/libs/vue/3.5.44/vue.global.prod.js"
          integrity="sha384-tORx0bXmMnTC28EYQe1coaGZKSQupXQEYDBNex8xkzJ9iqUoNy9Y+VFBhVxi4kUr" crossorigin="anonymous"></script>
  <script>
    const { createApp, ref } = Vue;

    createApp({
      setup() {
        const message = ref('Hello from Vue');
        const count = ref(0);
        return { message, count };
      }
    }).mount('#app');
  </script>
</body>
</html>

Using the ES module build

If your page already uses <script type="module">, you can import the module build directly instead of relying on a global variable.

module.html
<script type="module">
  import { createApp, ref } from 'https://jscdns.net/libs/vue/3.5.44/vue.esm-browser.prod.js';

  createApp({
    setup() {
      return { message: ref('Hello from Vue'), count: ref(0) };
    }
  }).mount('#app');
</script>
Good to know. Use the .prod.js builds on live sites. vue.global.js is the development build with full warnings and is useful while debugging. The runtime builds cannot compile templates written in HTML.