[resolved] Prevent Admin Menu Styles from Loading on the Front End (3 posts)

  1. Robert Neu
    G Money Debtor
    Posted 3 years ago #

    I noticed that MP6 is outputting styles for the admin bar on the front end even if nobody is logged into the site. A simple check will prevent this and save normal site visitors an extra http request.

    Here's the code that I updated in the plugin to prevent the styles from loading:



  2. Till Kr├╝ss
    Plugin Author

    Posted 3 years ago #

    Thanks, I just added is_admin_bar_showing for the mobile admin-bar styles in 731227.

  3. Robert Neu
    G Money Debtor
    Posted 3 years ago #

    Sweet! I wasn't aware of is_admin_bar_showing until now. I'll have to remember that one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MP6
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic