Option to exclude from “Load Inline JS”
-
The “Load Inline JS” option has a huge impact on performance and we want to use it to “Deffer” the inline js codes.
Pretty much everything is fine except one thing, which is related to the way WordPress core is handling the situation.
So, when a theme is storing the settings, they use this method:
https://developer.ww.wp.xz.cn/reference/functions/wp_localize_script/Which results in generating an inline js code. Which shouldn’t be deferred or it will break the site. This is the only thing we shouldn’t deffer on our site.
Please add an option below “Load Inline JS” to let us exclude the things from being deferred. This helps us a lot. For example, this is how our theme is storing the settings:
https://ibb.co/ccNYgNsIf we exclude the “woodmart_settings” var from being deferred, everything will work just fine and we’ll get the huge improvement from other deferred js codes.
Thanks
The topic ‘Option to exclude from “Load Inline JS”’ is closed to new replies.