How to include/not include external Javascript files according on the device (e.g. Desktop, mobile, etc?
<p>I have this code on my header (I know sort of bad practice):</p>

<pre><code>?&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/js/cleditor/jquery.cleditor.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/js/jquery.expander.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/js/jquery.qtip-1.0.0-rc3.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/js/custom.js"&gt;&lt;/script&gt;

&lt;/head&gt;
</code></pre>

<p>I don't want to include this one:</p>

<pre><code>&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory'); ?&gt;/js/cleditor/jquery.cleditor.min.js"&gt;&lt;/script&gt;
</code></pre>

<p>on mobile and tablet. Any ideas of how to accomplish this?</p>
