Edit: After further investigation on the problem, I found that these styles are included by the Contact Form 7 plugin. My solution to the problem was to write a Must Use Plugin so that the Contact Form 7 plugin is only included when you are in the contact form.
For this purpose I have created the following file:
2
Answers
The following code in your functions.php should remove wp-polyfill and regenerator-runtime:
See also: wp_deregister_script
Edit: After further investigation on the problem, I found that these styles are included by the Contact Form 7 plugin. My solution to the problem was to write a Must Use Plugin so that the Contact Form 7 plugin is only included when you are in the contact form.
For this purpose I have created the following file:
which is filled as follows:
My Code at GitHub Gist: tk-mu-plugin.php
Explanation in German on my blog: CSS und Javascript nur bei Bedarf auf WordPress-Seiten einfügen
The two scripts are also added without contact-form-7. But I can deregister both without errors with: