简体   繁体   English

网络慢或加载过多数据会影响 onclick slideToggle() 函数吗?

[英]Does slow network or loading too much data affect onclick slideToggle() function?

My slideToggle() function works well in some pages.我的slideToggle()函数在某些页面上运行良好。 It doesn't work in some other pages.它在其他一些页面中不起作用。

What I need to know is whether the slow network or loading too much data affects onclick slideToggle() function or not?我需要知道的是,网络缓慢加载过多数据是否会影响 onclick slideToggle()功能?

No, not in itself.不,不是它本身。 The load on your machine/device would affect slideToggle.您的机器/设备上的负载会影响 slideToggle。 So loading too much data would generally add load to the device thus making everything slower / causing paging etc. If you (for some crazy reason) make an ajax call then that would cause an issue but otherwise network would have no impact as it's all client-side so no network traffic to be waiting on.所以加载过多的数据通常会增加设备的负载,从而使一切变慢/导致分页等。 如果你(出于某种疯狂的原因)进行 ajax 调用,那么这将导致问题,但否则网络将没有影响,因为它都是客户端-side 所以没有网络流量等待。

-- @freedomn-m -- @freedomn-m

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM