Skip to content
Snippets Groups Projects
Commit 54f70193 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Moved JS to the footer.

parent 606aa145
Branches
Tags
1 merge request!2Issue #3342445: jQuery .live() is deprecated
......@@ -9,7 +9,7 @@ function jquery_loadinganimation_init() {
$path = drupal_strtolower(drupal_get_path_alias($_GET['q']));
if (!drupal_match_path($path, $js_settings['jquery_loadinganimation_path_match_exclude'])) {
drupal_add_js(array('jquery_loadinganimation' => $js_settings), 'setting');
drupal_add_js($module_path . '/jquery_loadinganimation.js');
drupal_add_js($module_path . '/jquery_loadinganimation.js', array('scope' => 'footer'));
drupal_add_css($module_path . '/jquery_loadinganimation.css');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment