Problem with calling function from enqueued script.
-
Plugin has hardcoded “async” attribute for script tag in function footerServe() and when I want to call a function from minified asset (right after minified asset script tag)
<script async="" src="https://xyz/wp-content/uploads/am_assets/foot-63d925416ac7d2177826e375e86529d2.js" type="text/javascript"> <script type="text/javascript"> functionCall(); </script>
I get an error about that the function is undefined.
When I’ve removed async attribute from script tag every thing worked fine. Please add some option or a filter to give possibility to modify this behaviour.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problem with calling function from enqueued script.’ is closed to new replies.