Optimized the loading of scripts in class-metabox.php