加快反应速度。 [英] speeding up response.

查看:113
本文介绍了加快反应速度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了让我的应用程序运行得更快,我已经开始使用javaScript将搜索功能嵌入到html页面中,以调用并执行ajax例程。一切正常,除了将焦点设置到第一个(也是唯一的)输入元素。

In an effort to make my apps run faster, I have started to embed a search feature into the html page with javaScript to call and execute an ajax routine. Everything works fine except for setting focus to the first (and only) input element.

展开 | 选择 | Wrap | 行号

推荐答案

你可以确认该领域没有焦点或焦点只是隐形......所以你可以立即打字......但是没有注意到焦点?这个问题似乎很常见,我从来没有看到过解决方案......但你可以通过在聚焦区域或背景颜色周围设置边框来解决它......这样可以很容易地注意到焦点......单独的光标似乎是一个不太好的指标...但可能有人有更好的解决方案吗?


亲切的问候
can you confirm that the field has NO focus or is the focus just ''invisible'' ... so you could type instantly ... but just don''t notice the focus? this problem seems to be common and i never saw a solution ... but you could ''workaround'' it with setting a border around focused fields or a background-color ... so that the focus could be easily noticed ... the cursor alone seems to be a not quite good indicator ... but may be someone has a better solution?

kind regards


它是可见,你只能在光标出现之前输入它。
It is visible, you just cannot type in it until the cursor appears.


然后有一些同步请求,如大型js-libs,框架等?可能同时加载?
then there are some synchronous requests like large js-libs, frames etc.? that might be loaded the same time?


这篇关于加快反应速度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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