malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.51k forks source link

Sometimes you try to access a cdn in cloudflares #625

Open martinmurciego opened 5 years ago

martinmurciego commented 5 years ago

In a moment I made the claim or query about this problem in another repository, since I use the admin template Gentelella that uses this plugin with the mouse wheel plugin. The problem occurs when the connection is slow especially. Sometimes you try to access to cdn into cloudflares: https://cdnjs.com/libraries/jquery-mousewheel and throw an error. I have seen this error in the chromium javascript console especially when the internet connection speed becomes slow. So it does not access the library hosted locally in the directory of javascript and css files but seeks to access the cdn. How do I modify this unwanted behavior?

https://github.com/jquery/jquery-mousewheel/issues/196#issue-380017010

https://github.com/malihu/malihu-custom-scrollbar-plugin/blob/5f1bb9d0c234b0404492b3a2dd8e872d33a87122/js/uncompressed/jquery.mCustomScrollbar.js#L52