How to exclude wp_localize_script from delayed or optimize
-
Hello developer,
I see
wp_localize_script( 'fixedtoc-js', 'fixedtocOption', $options );in my plugin (Fixed TOC).It output HTML like
<script type='text/javascript' id='fixedtoc-js-js-extra'> var fixedtocOption = ... </script>How I can exclude it from JS optimize and delayed?
I tried add fixedtoc-js-js-extra, fixedtoc-js but not work.
I can edit plugin php file but I don’t know how to make it output
<script type='text/javascript' id='fixedtoc-js-js-extra' data-no-defer="1" data-no-optimize="1"> var fixedtocOption = ... </script>Hope you can help, thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to exclude wp_localize_script from delayed or optimize’ is closed to new replies.