Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async and defer tags #223

Open
lsnjsolowiej opened this issue May 11, 2017 · 1 comment
Open

async and defer tags #223

lsnjsolowiej opened this issue May 11, 2017 · 1 comment

Comments

@lsnjsolowiej
Copy link

Hi,
it would be nice to have an option to add defer and async tags to <script, or, more globally, all specified tags.

@dominique-mueller
Copy link

That really would be nice to have! But you're aware that gulp-inject allows you to do this? You only have to use a custom transform function, such as (for defer):

transform: ( path, file ) => {
    return `<script src="${ path }" defer></script>`;
}

Still, it would be nice to have a simple option instead.

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

No branches or pull requests

2 participants