简体   繁体   English

后滑块垂直加载而不是水平加载

[英]Post slider loads vertically instead of horizontally

All post sliders on this site load vertically for a few seconds before it loads.此站点上的所有帖子滑块在加载前都会垂直加载几秒钟。 All the styles load - it' s the javascript that's affecting it.所有的样式都加载 - 影响它的是 javascript。

Can it simply be because it loads over 50 fairly sized images?难道仅仅是因为它加载了 50 多个相当大小的图像?

It has to do with load times.它与加载时间有关。 You could theoretically use your css to make them automatically render side-by-side with floats or inline-block and then in the javascript file disable that css by removing the class or simply removing the css.理论上,您可以使用 css 使它们自动与浮点数或内联块并排呈现,然后在 javascript 文件中通过删除类或简单地删除 css 来禁用该 css。 If it were me I wouldn't worry about it though.不过如果是我,我也不会担心。 On my machine I could barely scroll down fast enough to see the vertical load.在我的机器上,我几乎无法快速向下滚动以查看垂直负载。 It could be an issue for users with slower internet I suppose.我想这对于互联网速度较慢的用户来说可能是一个问题。

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

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