Conversation
supportAwesome plugin! Do you plan to add an option to inline CSS (and JS)? Something like function hook_inline_css() { $css_path = 'wp-content/uploads/some.css' $css_content = file_get_contents( $css_path ); echo '<style>' .PHP_EOL .'/*' . $css_path . '*/' .PHP_EOL . $css_content .'</style>'; } add_action('wp_head','hook_inline_css'); This topic was modified 3 years, 11 months ago by yoyurec . This topic was modified 3 years, 11 months ago by yoyurec .
Thank you for rating, I will work on this feature soon.
And maybe also “defer” JS in addition to “async”? )) It reuses same code, so it will be verrryy easy update. Tnx! This reply was modified 3 years, 10 months ago by yoyurec .
Thank you for feedback. Defer added, please upgrade to 1.8 best;
JS tab : Adding attribute to file… async/defer are mutually exclusive! So should be dropdown select. CSS tab : No changes were needed for this section as for CSS used another solution and no defer attr exists )) So as result on JS tabs near asset select with 3 options “Sync(default)/Defer/Async”, on CSS tab checkbox “Async”.
You are right, I will find time for that. Currently, it does its job 😉
Thank you for rating, I will work on this feature soon.
And maybe also “defer” JS in addition to “async”? )) It reuses same code, so it will be verrryy easy update. Tnx! This reply was modified 3 years, 10 months ago by yoyurec .
Thank you for feedback. Defer added, please upgrade to 1.8 best;
JS tab : Adding attribute to file… async/defer are mutually exclusive! So should be dropdown select. CSS tab : No changes were needed for this section as for CSS used another solution and no defer attr exists )) So as result on JS tabs near asset select with 3 options “Sync(default)/Defer/Async”, on CSS tab checkbox “Async”.
You are right, I will find time for that. Currently, it does its job 😉