Skip to content

Commit

Permalink
MDL-40563 improve jquery serving performance
Browse files Browse the repository at this point in the history
It is not necessary to do full page init to access the plugin locations API.
  • Loading branch information
skodak committed Jul 12, 2013
1 parent cba94ce commit 9ad8b42
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions theme/jquery.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@
}

} else {
define('ABORT_AFTER_CONFIG_CANCEL', true);
define('NO_MOODLE_COOKIES', true); // Session not used here.
define('NO_UPGRADE_CHECK', true); // Ignore upgrade check.
require("$CFG->dirroot/lib/setup.php");
$componentdir = get_component_directory($component);
$componentdir = core_component::get_component_directory($component);
}

if (!file_exists($componentdir) or !file_exists("$componentdir/jquery/plugins.php")) {
Expand Down

0 comments on commit 9ad8b42

Please sign in to comment.