开发者

Strange Google Chrome Bug. jQuery

开发者 https://www.devze.com 2023-01-10 03:06 出处:网络
I have used in my site jScrollPane jquery plugin. It is normally work in all browsers except Chrome. Take a look here: http://evarivas.com/bio

I have used in my site jScrollPane jquery plugin. It is normally work in all browsers except Chrome. Take a look here: http://evarivas.com/bio In my Chrome I have no proble开发者_如何学Cms. Scroll works normally. On another computers sometimes works sometimes doesn't. After refresh works, or doesn't work...

What is this? Very strange...


I have been receiving the jScrollPane Google Group messages recently, and I've seen at least two or three people have their issues disappear by placing scripts in the head instead of the bottom of the body. I realize some performance recommendations suggest scripts at the bottom but in my experience it's not really a significant enough perf gain to justify the often-greater delays in initializing behaviors.

Might be worth a try.

Edit: Just noticed you're using a pretty old version of jScrollPane -- I highly recommend upgrading to build 93 of jScrollPane, which is available by downloading the latest from the google code repository: http://code.google.com/p/jscrollpane/source/checkout

Simply upgrading may solve your problem.


Have you downloaded the entire JScroll library or merely placed a link in the header script?

I had the issue of not being able to get my infinite scroll working on Chrome only, however I realised that this is because Chrome did not recognise the MIME type of my script.

For example, I had:

<script src=https://raw.githubusercontent.com/pklauzinski/jscroll/master/jquery.jscroll.min.js></script>

The correct way of entering a raw script from Github is:

<script src="https://rawgit.com/pklauzinski/jscroll/master/jquery.jscroll.min.js"></script>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号