-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
There's a commented-out set of calls to deregister a handful of scripts from the Parent theme at
MITLibraries-news/functions.php
Lines 34 to 43 in bfab53b
| /** | |
| * This de-registers scripts from the parent theme, but they don't seem to actually be used? | |
| */ | |
| function remove_scripts(){ | |
| // wp_deregister_script('tabletop' ); | |
| // wp_deregister_script('productionJS'); | |
| // wp_deregister_script('underscore'); | |
| // wp_deregister_script('lib-hours'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 ); |
function remove_scripts() {
// wp_deregister_script('tabletop' );
// wp_deregister_script('productionJS');
// wp_deregister_script('underscore');
// wp_deregister_script('lib-hours');
}
add_action( 'wp_enqueue_scripts', 'remove_scripts', 100 );
I'm not sure about productionJS, but the other three scripts (tabletop, underscore, and lib-hours) were all added to support the new hours page. They may not be needed in the News theme, and could probably be removed (i.e. the uncommented lines could be restored)
For now, I'm removing this entire function in order to eliminate overhead, but wanted to leave this as an open question for discussion.
Reactions are currently unavailable