ajax-loader.gif not showing
See original GitHub issueI apologize ahead of time if this is not really an issue. I can’t seem to see the ajax-loader spinner at all in my pages or on http://kenwheeler.github.io/slick/. I have even tried throttling my connection speed.
Slick.js’s css targets
.slick-loading .slick-list { background: #fff url("./ajax-loader.gif") center center no-repeat; }
but .slick-loading isn’t applied to the top level html element, .slick-loading is applied only to the image that is being loaded.
I have also tried with the latest 1.3.13
Is slick.js supposed to add a .slick-loading class to the top level slider html element? If so, I must be missing it? Maybe the class isn’t added so the spinner isn’t appearing?
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Loading gif in jQuery ajax call is not showing - Stack Overflow
The problem is that the image does not show. If I remove the hide() after the initial dialog load, then the gif is...
Read more >Loading gif in jQuery ajax call is not showing - Edureka
The problem is that the image does not show. If I remove the hide() after the initial dialog load, then the gif is...
Read more >Bug ajax-loader.gif not found - WordPress.org
Hi folks, I've stubled upon a bug in the newest release of this plugin. CF7 tries to load the following file: /wp-content/assets/ajax-loader.gif
Read more >ModalPopupExtender animated gif not animating - MSDN
Hi, I'm trying to use the modalPopup extender to show a "processing" message with an animated gif. Everything works pretty well except that...
Read more >django: ajax simple loading gif not working/ over-riding render ...
I am not at all familiar with Ajax/javascript and so while I understand that I can see that I am able to set...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you are including slicks .scss theme file. You can overwrite the variable $slick-loader-path to a custom path.
Looking at the code the
ajax-loader
only seems to come into effect when using lazy-loading. Since the$slick-loader-path
variable in the css depends on theslick-loading
, see: https://github.com/kenwheeler/slick/blob/a2aa3fec335c50aceb58f6ef6d22df8e5f3238e1/slick/slick-theme.less#L20which only gets set if the
lazy-data
attribute is present on the image, see: https://github.com/kenwheeler/slick/blob/a2aa3fec335c50aceb58f6ef6d22df8e5f3238e1/slick/slick.js#L536