• Resolved jesusistruelord

    (@jesusistruelord)


    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 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marco van Wieren

    (@wpo365)

    Hi @jesusistruelord

    Thank you for reaching out! Please check https://docs.wpo365.com/article/36-authentication-scenario. You’ll notice that you can add the following snippet to your wp-config.php to prevent the plugin from being loaded when you have configured the plugin’s Internet Authentication Scenario.

    define( 'WPO_AUTH_SCENARIO', 'internet' );

    Please note that adding this line to your wp-config.php may also prevent some (premium) functions e.g. to detect restrictions configured for a page to work as expected.

    The script is loaded on every page load, because it inject important JavaScript dependencies in the page, to allow for a login button being placed on every page.

    Hope this helps!

    -Marco

    Plugin Author Marco van Wieren

    (@wpo365)

    Closing this topic because no further replies were received.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘pintraredirectjs’ is closed to new replies.