Does fastclick.js get executed?
The problem I am running into is that when I test a 300ms latency while clicking on some buttons on the website, I don't notice any delay. But when I load the app too with a phone call, I touch the buttons on the tablet, I notice the delay is 300ms directly. So I am a little confused that I notice a delay in the phone connection, but almost nothing when I test on the website .. So, I want to test either with a warning or something that fastclick.js is working on the website. before downloading it too over the phone? This will save me time.
I have included this in my main index.html file, fastclick.js
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type='application/javascript' src='js/fastclick.js'></script>
<script type="application/javascript">
window.addEventListener('load', function() {
new FastClick(document.body);
}, false);
</script>
source to share
Fastclick
performs browser detection using a string user agent
. In your application, the phonegap user agent
is different from what the mobile browser will return, and thus the Fastclick
script will not detect that you are on a mobile device. You can change user agent
and the way to do it is described in the answers to this thread .
source to share