Skip to content

Do scripts inherited from MITLibraries-Parent need to be removed? #87

@matt-bernhardt

Description

@matt-bernhardt

There's a commented-out set of calls to deregister a handful of scripts from the Parent theme at

/**
* 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions