Hello,
First of all, Happy New Year to the whole team!
While i was doing some testing I find myself not able to call the wurlf.io website (isseu was accidentally on my side).
And of course my JS testing wasn't working (WURFL object inexistant), which lead me to testing the case of a timeout issue.
How can we avoid extreme loading time in case of unexpectly long load time of the wurfl.js ?
how to prevent/accelerate the timeout ?
Re: how to prevent/accelerate the timeout ?
Hello,
If you would like to prevent external HTTP requests while working locally or while testing, I would recommend saving a WURFL object to file accessible by your local webserver as opposed to loading the WURFL object from wurfl.io. I have posted several examples of WURFL objects for you to get started with.
Desktop device:
Tablet:
Smartphone:
Thank you,
Elliot
If you would like to prevent external HTTP requests while working locally or while testing, I would recommend saving a WURFL object to file accessible by your local webserver as opposed to loading the WURFL object from wurfl.io. I have posted several examples of WURFL objects for you to get started with.
Desktop device:
Code: Select all
var WURFL = {
"is_mobile": false,
"complete_device_name": "generic web browser",
"form_factor": "Desktop"
};
Code: Select all
var WURFL = {
"is_mobile": true,
"complete_device_name": "Google Nexus 7",
"form_factor": "Tablet"
};
Code: Select all
var WURFL = {
"is_mobile": true,
"complete_device_name": "Samsung GT-I9300 (Galaxy S III)",
"form_factor": "Smartphone"
};
Elliot
Who is online
Users browsing this forum: No registered users and 3 guests