I'd like to have more control over at what point the themes get inserted into the head section to ensure proper & optimized loading.
A quote from the Modernizr website:
Drop the script tags in the <head> of your HTML. For best performance, you should have them follow after your stylesheet references. The reason we recommend placing Modernizr in the head is two-fold: the HTML5 Shiv (that enables HTML5 elements in IE) must execute before the <body>, and if you’re using any of the CSS classes that Modernizr adds, you’ll want to prevent a FOUC. http://modernizr.com/docs/
A quote from Google Insights:
Correctly ordering external stylesheets and external and inline scripts enables better parallelization of downloads and speeds up browser rendering time. https://developers.google.com/speed/docs/best-practices/rtt#PutStylesBeforeScripts
Currently the system just appends to the header tag.
Ideally the system would in the future do the following:
1. Iterate down to find </head> tag.
2. Iterate up to find the first </meta> tag
3. Append theme snippet after that.
or even better:
1. Look for <asp:PlaceHolder id="theme" runat="server" />
2. If present, insert
3. If not present use current behavior.
Both solutions will ensure the most optimal way of loading and provide even users with IE7/IE8 a nice looking and working website...