From 18ce39a0d10f2da2c524b653d57faa7f090a576f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:17:01 +0000 Subject: [PATCH] ENHANCEMENT Including prototypefix javascript in LeftAndMain::init() to speed up CMS loading by using native browser DOM methods instead of slower prototypejs overloads. This should be a temporary measure until we can remove prototype.js from the default installation. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92753 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 5c1df47c..0018931d 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -169,7 +169,9 @@ class LeftAndMain extends Controller { Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/firebug-lite/firebugx.js'); } + Requirements::javascript(SAPPHIRE_DIR . '/javascript/prototypefix/intro.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/prototype/prototype.js'); + Requirements::javascript(SAPPHIRE_DIR . '/javascript/prototypefix/outro.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js'); Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');