Detecting Lightboxed Pages in WordPress Admin

When you want inject something into the WordPress admin, you might not think to account for pages that load inside lightboxes (plugin updates, media upload, etc.). Generally, you don’t want to add your JS/CSS/etc. to these pages.

To check for this type of page load, you can check for the IFRAME_REQUEST constant.