How do I exclude inline script that has no code from combine?
-
We have some code that needs to go in a post, provided by a 3rd party.
Their code is a combination of an<a>
link followed by a<script>
that processes whatever.
The<script>
has no code, it just points to asrc=""
and has some other data attributes.How do I exclude this kind of inline script from the SGO JS combine feature?
I tried using the filter “sgo_javascript_combine_excluded_inline_content” but it wants me to put the “first few symbols” of the script. Problem is, the script is empty because it just has the
src=""
and no inner code.So how do I exclude this kind of script from being combined?
As a side note, it could really help if we can exclude it within the tag attributes themselves, like if we did
<script sgo-combine-exclude src=""></script>
. Then we can exclude it manually right in the tag itself.
- The topic ‘How do I exclude inline script that has no code from combine?’ is closed to new replies.