You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
easy integration of google adsense, recaptcha, etc.
What does the proposed API look like?
// global scripts// currently only available on `head`{scripts: [{src: 'https://www.google.com/recaptcha/api.js?render=...',defer: true,async: true,pos: 'before'}]},// per page scriptsnav: [{text: "Home",link: "/",scripts: [{src: 'https://www.google.com/recaptcha/api.js?render=...',defer: true,async: true,pos: 'before'}]},]
How should this be implemented in your opinion?
Are you willing to work on this yourself?**
yes
The text was updated successfully, but these errors were encountered:
For global scripts, we can use enhanceApp.js and some script loading lib (e.g loadjs) to implement it at userland. you can even inject it at the dev or prod template when we support Config the dev and build html template. #733
For per page scripts, the API you recommended is such complicated, why coupling it with nav config? The simplest way should be monitoring $route changes, and then loading the scripts that you want.
Feature request
What problem does this feature solve?
easy integration of google adsense, recaptcha, etc.
What does the proposed API look like?
How should this be implemented in your opinion?
Are you willing to work on this yourself?**
yes
The text was updated successfully, but these errors were encountered: