Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie loads #67

Open
richrubb opened this issue Jun 30, 2016 · 1 comment
Open

Cookie loads #67

richrubb opened this issue Jun 30, 2016 · 1 comment

Comments

@richrubb
Copy link

Hi, this plugin works very well and in my experience of working with the alternative mapping plugin this is by far superior.. The only issue I have with it is the load time of this code injected into the html. Although it contains 0Bytes it more than doubles the load time of the page when I test with pingdom. I just wonder if there is an issue with it or not.

<script src="http://site/wp-admin/admin-ajax.php?action=mercator-sso-js&#038;host=site&#038;back=http%3A%2F%2Fsite%2Fcontact%2F&#038;site=2&#038;nonce=932be8972d"></script> <script type="text/javascript"> /* <![CDATA[ */ if ( 'function' === typeof MercatorSSO ) { document.cookie = "wordpress_test_cookie=WP Cookie check; path=/"; if ( document.cookie.match( /(;|^)\s*wordpress_test_cookie\=/ ) ) { MercatorSSO(); } } /* ]]> */ </script>

Thanks for any pointers
Richard

@roborourke
Copy link
Contributor

@richrubb thanks for the kind words :)

Currently we're not sure of a better way to do SSO. You can disable SSO entirely if you don't need it:

In sunrise.php:

add_filter( 'mercator.sso.enabled', '__return_false' );
add_filter( 'mercator.sso.multinetwork.enabled', '__return_false' );

There is a related issue here #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants