4 ms·
Also, the reason for using javascript_include_tag instead of <script> is that the actual script tag would look like <script src="http://assetsN.yourapp.com/loca
by wycats 17y ago
Also, the reason for using javascript_include_tag instead of <script> is that the actual script tag would look like <script src="http://assetsN.yourapp.com/location/of/concatted_js_files.js?mtimestamp></script> http://assetsN.yourapp.com/location/of/concatted_js_files.js...;
There's a lot of additional help that a framework can offer for the client-side if you use its helpers, and that help can be tuned over time as the best practices themselves get refined.
- charlesmarshall 17y agoSpeaking of which; when advising to use multiple domains should really mention not to go overboard on the number you use. Too many alternative domains and you will get a new warning from yslow. Every time you pull from a new domain, this will incur a dns lookup, might even end up with the page going slower because them.
- wycats 17y agoYep. If you just use the default asset host configuration, we limit it to four hosts, as per YSlow.