pintraredirectjs
-
Hello,
Could you please not load wp-content/plugins/wpo365-login/apps/dist/pintra-redirect.js on every request? It does not make any sense. It’s 40 KB of minified JS which does not do anything in most scenarios. Especially when this plugin is being used only as IDP/SP initiated SSO.
Not a single time this particular JS is used in such scenarios and will not be used if everything’s done properly. But you load it in every request.
Of course, we can remove it ourselves, and in these conditions everything works as it should (since there’s absolutely no need for JS for IDP/SP SSO), but shouldn’t the plugin be optimized in the first place?
function dequeue_unnecessary_scripts() {
wp_dequeue_script( 'pintraredirectjs' );
}
add_action( 'wp_print_scripts', 'dequeue_unnecessary_scripts', PHP_INT_MAX );
The topic ‘pintraredirectjs’ is closed to new replies.