为什么 Android 的原生 HTML5 日期选择器上的 Chrome 变得非常慢? [英] Why has Chrome on Android's native HTML5 date picker become really slow?

查看:24
本文介绍了为什么 Android 的原生 HTML5 日期选择器上的 Chrome 变得非常慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有一个日期选择器,它只使用默认的 html5 日期选择器.

I have a date picker on my site that just uses the default html5 date picker.

我注意到,直到几周前,它运行良好,但自从 Chrome Android 上最近更新以来,他们引入了一个新的日期选择器,这个日期选择器真的很慢而且没有响应.加载需要几秒钟,我发现很难选择任何日期.

I've noticed that up until a couple of weeks ago, it was working fine but ever since a recent update on Chrome Android, they've introduced a new date picker and this date picker is really slow and unresponsive. It takes several seconds to load up and i find it really hard to pick any dates.

我有一个演示网站(http://datapickerandroid.meteor.com/).我已经在 Nexus 7 2013 和 HTC one M8 上测试过它,Android 上的 Chrome 都有这个问题.我还在 dolphin 和 firefox 以及桌面浏览器上对其进行了测试,它们看起来不错,所以看起来像是 chrome 上的日期选择器有问题.

I have a demo site illustrating it (http://datapickerandroid.meteor.com/). I've tested it on a Nexus 7 2013 and HTC one M8 and Chrome on Android both have this problem. I've also tested it with dolphin and firefox and also on desktop browsers, they seem fine so it looks like it's a problem with the date picker on chrome.

我想知道发生了什么?Chrome Android 中是否只有一个错误?它是否只发生在我的设备上?我是否以不正确的方式声明我的日期选择器?是否可以向浏览器指定我想使用旧的日期选择器?我也在使用 Meteor(虽然在演示中,我删除了所有非默认包),这可能与此有关吗?

I'm wondering what's going on? Is there just a bug within Chrome Android? Is it happening for my devices only? Am I declaring my date picker in an incorrect way? Is it possible to specify to the browser I would like to use the old date picker? I'm also using Meteor (although in the demo, I removed all non-default packages), could it be something to do with that?

推荐答案

请参阅 crbug.com/441060 .您可以通过指定 min= 和 max= 属性来避免这种缓慢.

See crbug.com/441060 . You can avoid this slowness by specifying min= and max= attributes.

这篇关于为什么 Android 的原生 HTML5 日期选择器上的 Chrome 变得非常慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆