Include external js for mobile
-
Question: How to load external js file in mobile?
Problem: I use wp_enqueue_script via ‘my_custom_functions’ plugin to load a js.I checked the source with chrome in my android.
The script tag for the enqueued script file is like below:
<script type='text/javascript' src='script.js?ver=1.0'></script>
But I think it should be like below to execute.
<script type='Javascript' src='script.js?ver=1.0'></script>
How should I change the type in mobile only?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Include external js for mobile’ is closed to new replies.