Using WordPress ‘pre_load_script_translations’ PHP filter
The 'pre_load_script_translations' PHP filter in WordPress allows developers to modify the list of scripts that should have translations loaded. This can improve performance and reduce unnecessary translations.