We should be using the cdn if it's available.  Can we change this to use the header-main.php instead of the header-error.php and use the script-registry?  It might not be possible on error pages.