# HG changeset patch # User Dan # Date 1247110621 14400 # Node ID 7b9132bfb5ce7408b5b95a0310c1ba0077238e13 # Parent d996bb6d6e74e291e1b0c0c1a93ff34db1935d01 OK, JS preloading on a CDN works perfectly now. I'm sure of it. diff -r d996bb6d6e74 -r 7b9132bfb5ce includes/template.php --- a/includes/template.php Wed Jul 08 22:44:46 2009 -0400 +++ b/includes/template.php Wed Jul 08 23:37:01 2009 -0400 @@ -549,7 +549,7 @@ { // we're on a CDN, point to static includes // CLI javascript compression script: includes/clientside/jscompress.php - $js_head = ''; + $js_head = ''; if ( !empty($this->js_preload) ) { @@ -560,6 +560,7 @@ { $script = preg_replace('/\.js$/', '', $script) . '.js'; } + unset($script); $this->js_preload = array_unique($this->js_preload); foreach ( $this->js_preload as $script ) @@ -582,8 +583,6 @@ "; } - $js_head .= ''; - $js_foot = << // This initializes the Javascript runtime when the DOM is ready - not when the page is