reduce DNS lookup – host fontawesome yourself
-
I am using Woocommerce Waitlist( Back in stock notifier ) version 2.4
thank you for such a great and useful plugin
I am trying to reduce external requests, and I have noticed there are font-awesome lookup, even I have hosted font-awesome myself (to reduce number of DNS lookups)\plugins\waitlist-woocommerce\xoo-form-fields-fw\admin\class-xoo-aff-admin.php
in line 31, there is:
wp_enqueue_style( 'xoo-aff-fa', 'https://use.fontawesome.com/releases/v5.5.0/css/all.css' ); //Font Awesome
\plugins\waitlist-woocommerce\xoo-form-fields-fw\includes\class-xoo-aff.php
in line 56, there is:
wp_enqueue_style( 'xoo-aff-font-awesome5', 'https://use.fontawesome.com/releases/v5.5.0/css/all.css' );
in line 96, there is:
wp_enqueue_style( 'select2', "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" );
would you be so kind to allow advanced users defining own fontawesome link (for self hosted scenario), same goes for “select2.min.css” from cdn.jsdelivr.net
it would be great if your Woocommerce Waitlist( Back in stock notifier ) would offer additional setting field where advanced user can add their own URL, in order to avoid edit-ing two .php files each time new version or update happens
Thank you very much for your time, effort and understanding!
Snow regards from Germany ??
Peter
- The topic ‘reduce DNS lookup – host fontawesome yourself’ is closed to new replies.