djangosnippets.org: Latest snippets tagged with 'otimization'https://djangosnippets.org/tags/otimization/2010-07-09T14:12:23.967440-05:00Middleware to move tags <script> to the bottom
2010-07-09T14:12:23.967440-05:00marinhohttps://djangosnippets.org/snippets/2101/<p>This middleware makes the page load faster because it moves all tags <script> to the end of document.</p>
<p>When a tag <script> loads, it blocks parallel loading, so, the best practice is load them after load CSS and images.</p>
<p>To use it, just put in a file and add to …</p>
Freely redistributable