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

javascripts tags should be placed at the bottom by default #7888

Closed
wants to merge 1 commit into from

Conversation

xdite
Copy link

@xdite xdite commented Oct 9, 2012

according Best Practices for Speeding Up Your Web Site

http://developer.yahoo.com/performance/rules.html
javascripts should be placed at the bottom

and recommend write javascripts this way

Your view content here
<%= content_for(:scripts) do %>
<script>
  Your scripts here
</script>
<% end %>

@jandudulski
Copy link

👍 👍 👍

… for Speeding Up Your Web Site

http://developer.yahoo.com/performance/rules.html
javascripts should be placed at the bottom

and write javascripts this way

=====
Your view content here
<%= content_for(:scripts) do %>
<script>
  Your scripts here
</script>
<% end %>
======
@vijaydev
Copy link
Member

See #5815 and #5921. Closing this.

@vijaydev vijaydev closed this Oct 10, 2012
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

Successfully merging this pull request may close these issues.

3 participants