Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

async defer trouble with AngularJS reCaptcha #621

Open
scne opened this issue May 31, 2016 · 1 comment
Open

async defer trouble with AngularJS reCaptcha #621

scne opened this issue May 31, 2016 · 1 comment

Comments

@scne
Copy link

scne commented May 31, 2016

As you can see in README of https://github.com/VividCortex/angular-recaptcha I need to use

async defer in my code but when I use the grunt task useminPrepare with this conf

module.exports = { html: ['src/index.html','src/material.html'], options: { dest: 'angular' } }

and with this general task

... gtx.alias('build:angular', [ 'recess:less', 'clean:angular', 'copy:libs', 'copy:angular', 'useminPrepare', 'concat:generated', 'cssmin:generated', 'uglify:generated', 'usemin', 'clean:tmp' ]); .....

I get this error message

Running "useminPrepare:html" (useminPrepare) task Verifying property useminPrepare.html exists in config...OK Files: src/index.html -> html Options: dest="angular" Going through src/index.html to update the config Looking for build script HTML comment blocks Warning: Error: You are not supposed to mix deferred and non-deferred scripts in one block. Use --force to continue.

@jeudywr
Copy link

jeudywr commented May 2, 2017

Did you ever solve this? I'm having the same issue because I added defer to a couple of script declarations to improve my score on the Pagespeed tools from Google, but after adding defer keep getting the error (and --force skips the replacement of this element).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants