Static GitHub Issues

[3135] Body script tag should be added before context scripts

prev: [Question] How to use Element-UI as CDN?
next: Access to component instance in meta

In file lib/core/renderer.js, line 372 to 375, as below

    APP += `<script>${serializedSession}</script>`
    APP += context.renderScripts()
    APP += m.script.text({ body: true })
    APP += m.noscript.text({ body: true })

we see the meta scripts is appended after context scripts, but the meta scripts are always some third part lib, like zepto, lodash and so on, they should be loaded before context scripts, so I think Nuxt should provide an option to decide if the meta scripts postion is before or after the context scripts.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2716">#c2716</a>)</em></sub></div>