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

Add option for async JavaScript #30

Closed
railsmechanic opened this issue May 16, 2013 · 1 comment
Closed

Add option for async JavaScript #30

railsmechanic opened this issue May 16, 2013 · 1 comment

Comments

@railsmechanic
Copy link

It would be great if you could define a JavaScript to be loaded asynchronously...

<script async type="text/javascript" src="/assets/app-e11efcdf30942a4f025d8093f5729ab3.js"></script>
@ixti
Copy link
Contributor

ixti commented May 18, 2013

I think it's not worth to have it built-in core feature. If you need custom script tag, just use asset_path:

<script async type="text/javascript" src="{% asset_path app.js %}"></script>

Anyway I'm open to discussion. If you really think it's a must have killer feature :D and can explain why do you think so, then I would consider adding it.

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

No branches or pull requests

2 participants