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

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

问题描述

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



我注意到,直到几个星期前,工作正常,但自从最近更新Chrome Android以来,他们引入了一个新的日期选择器,这个日期选择器真的很慢,没有反应。我需要几秒钟的时间才能加载,我觉得很难选择任何日期。



我有一个演示网站(http://datapickerandroid.meteor.com/ )。我已经在Nexus 7 2013和HTC One M8上进行了测试,Android上的Chrome都有这个问题。我也用dolphin和firefox以及桌面浏览器进行了测试,看起来好像是Chrome上的日期选择器的问题。



想知道发生了什么事? Chrome Android中是否有错误?是否仅在我的设备上发生?我以错误的方式宣布我的日期选择器吗?是否可以指定浏览器我想使用旧的日期选择器?我也在使用Meteor(虽然在演示中,我删除了所有的非默认软件包),可以这么做吗?

解决方案

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


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

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.

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.

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?

解决方案

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

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

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