Conversation
supportIf you have a site with a lot of users, lets say 2 million+ who use have a lot of user meta the admin bar integration really slows down the loading of the site. It does an user query on every page load and when we disabled the admin bar integration the loading time was about 6x as fast.
Thanks for reaching out @rolfsiebers , and for sharing specifics for this use case. Just to confirm, you’re finding delays when browsing as a logged in administrator and using the admin toolbar overall, or only when the Site Kit tab is accessed specifically from that bar? I ask as API requests should only be made on hovering and making use of the Site Kit tab. Note that if you prefer to programmatic and conditionally disable the Site Kit admin toolbar feature, as opposed to disabling the feature overall via Site Kit > Settings > Admin Settings > Display relevant page stats in the Admin bar , there is a googlesitekit_show_admin_bar_menu filter that can be use. You may wish to disable the bar for certain users for example. I’m also happy to check your site or discuss this with the team if you wish to share more details, or share your Site Health information so I can check for any other possible causes or conflicts.
Hi @jamesosborne , We already noticed the delays while browsing. I’ve already disabled the admin bar integration through the plugin itself. I’ve added an image from query monitor that shows which query is acting slow if that helps.
Many thanks for sharing @rolfsiebers , very useful to see. I’ll raise this with the team and provide any updates here on this. What you shared seems to be related to the plugins new email reports feature . While I’m performing some checks on this, you may wish to confirm no such delays with email reports temporarily disabled via Site Kit > Settings > Admin Settings > Email Reports .
Just to keep you updated on this, I created the below GitHub issue for the team to review: https://github.com/google/site-kit-wp/issues/12857 I can update you here with any progress on this, or feel free to chime in on that issue. Thank you.
Thanks for reaching out @rolfsiebers , and for sharing specifics for this use case. Just to confirm, you’re finding delays when browsing as a logged in administrator and using the admin toolbar overall, or only when the Site Kit tab is accessed specifically from that bar? I ask as API requests should only be made on hovering and making use of the Site Kit tab. Note that if you prefer to programmatic and conditionally disable the Site Kit admin toolbar feature, as opposed to disabling the feature overall via Site Kit > Settings > Admin Settings > Display relevant page stats in the Admin bar , there is a googlesitekit_show_admin_bar_menu filter that can be use. You may wish to disable the bar for certain users for example. I’m also happy to check your site or discuss this with the team if you wish to share more details, or share your Site Health information so I can check for any other possible causes or conflicts.
Hi @jamesosborne , We already noticed the delays while browsing. I’ve already disabled the admin bar integration through the plugin itself. I’ve added an image from query monitor that shows which query is acting slow if that helps.
Many thanks for sharing @rolfsiebers , very useful to see. I’ll raise this with the team and provide any updates here on this. What you shared seems to be related to the plugins new email reports feature . While I’m performing some checks on this, you may wish to confirm no such delays with email reports temporarily disabled via Site Kit > Settings > Admin Settings > Email Reports .
Just to keep you updated on this, I created the below GitHub issue for the team to review: https://github.com/google/site-kit-wp/issues/12857 I can update you here with any progress on this, or feel free to chime in on that issue. Thank you.