Brings back <script> to your favorite Single Page App!
npm install vue-script2VueScript2 brings back the tag to your SPA (Single Page App)!
This tiny library should take care of all your declarative and imperative asynchronous loading needs. Web designers can rest easy knowing their existing knowledge of web development is still useful!
This version is tailored for the Vue.js framework, but it's easy to port to Riot.js and others.
VueScript2 is primarily for internal use and not for standalone components that are being shared publicly. Those should be "self-contained" and come with all the JS they need.
NOTE: _Requires Vue 2.x. Use version 1.2.2 for Vue 1.x._
- Just like except with a 2, but even that can be fixed!
- Keep your app.js bundle small!
- Embrace Web Standards™ everyone knows and loves!
- Easy for web designers to pick up! If you know HTML, you already know how to use it!
- Tiny! Less than __1kb__! (min+gzip'd)
- Perfect for use in .ejs templates or .html files!
- No more including every library on every page or complicated "code splitting"!
- Ordered execution based on position in markup!
- Special unload attribute can be used to keep your app's memory usage low!
- Does imperative loading too!
```
npm install vue-script2 --save
Then enable the plugin (in your main.js or wherever):
`js`
Vue.use(require('vue-script2'))
Or with import:
`js
import Vue from 'vue'
import VS2 from 'vue-script2'
Vue.use(VS2)
`
_Note: you can write_ __