Most of you have probably noticed the embedded JS in the homepage:
Wouldn't that cache better as an external file?
(FYI: I'm not being pedantic, just looking at optimum speeds! )
Code:
<script type="text/javascript">
<!--
jQuery.extend(true, XenForo,
{
serverTimeInfo: { now: 1281053457, today: 1281049200, todayDow: 5 },
visitor: { user_id: 908 },
_overlayConfig: { top: '10%', mask: { color: 'white', opacity: 0.6, loadSpeed: 200}}, //TODO: source this from style properties
_loadedScripts: {"node_list":true,"node_category":true,"node_forum":true,"node_page":true},
_cookieConfig: { path: "/", domain: "", prefix: "xf_"},
_csrfRefreshUrl: "login/csrf-token-refresh"
});
jQuery.extend(XenForo.phrases,
{
a_moment_ago: "A moment ago",
one_minute_ago: "1 minute ago",
x_minutes_ago: "%minutes% minutes ago",
today_at_x: "Today at %time%",
yesterday_at_x: "Yesterday at %time%",
day_x_at_time_y: "%day% at %time%",
day0: "Sunday",
day1: "Monday",
day2: "Tuesday",
day3: "Wednesday",
day4: "Thursday",
day5: "Friday",
day6: "Saturday",
_months: "January,February,March,April,May,June,July,August,September,October,November,December",
_daysShort: "Sun,Mon,Tue,Wed,Thu,Fri,Sat"
});
XenForo.Facebook.appId = '146201428725181';
//-->
</script>
Code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10855523-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Wouldn't that cache better as an external file?
(FYI: I'm not being pedantic, just looking at optimum speeds! )