Fix detect mobile by running fetch tasks synchronously