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

loadScript with data-foo #38

Open
thierryler opened this issue Jul 17, 2016 · 0 comments
Open

loadScript with data-foo #38

thierryler opened this issue Jul 17, 2016 · 0 comments

Comments

@thierryler
Copy link

Hello,

I'd like to add a lib with the same result as follow:

<script data-foo src='https://foo.com/foo.js' async></script>

I see I can do that (async is default):

DocHead.loadScript('https://foo.com/foo.js', () => {
  console.log('foo is ready');
});

But what is the best way to add data-foo ?

Thx

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

1 participant