Slick: Prevent request for additional files (images and fonts)

Created on 26 Jul 2014  路  4Comments  路  Source: kenwheeler/slick

I'm using Slick.js in a situation where it is difficult to place the following files where Slick can find them:

  • ajax-loader.gif
  • /fonts/slick.woff
  • /fonts/slick.ttf
  • /fonts/slick.svg

I have no use for these files (they aren't being used in my slider), so I'd prefer to tell Slick to not try to load them. 2nd best option would be to tell Slick specifically where to find them so I can place them in a custom folder.

Is there a way to do either of these things?

Most helpful comment

I understand the desire to not have to do the extra work to accomodate this, but wanting the core functionality of slick without the specific design choices of slick is a very real use case. In fact, it's the _only_ use case for me and slick. Functionality and style are two separate concerns, and I'd prefer to not have to duplicate dozens of lines of CSS just to eliminate the default styles while preserving the functionality.

All 4 comments

In slick.css, simply remove the references to them (ie: @font-fact and background)

Thanks. I guess I was hoping for an answer that didn't involve forking the source files. I'd prefer to not need to edit these files every time I update Slick.

or simply don't load slick-theme.css and write your own template

I understand the desire to not have to do the extra work to accomodate this, but wanting the core functionality of slick without the specific design choices of slick is a very real use case. In fact, it's the _only_ use case for me and slick. Functionality and style are two separate concerns, and I'd prefer to not have to duplicate dozens of lines of CSS just to eliminate the default styles while preserving the functionality.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msavov picture msavov  路  3Comments

yangkennyk picture yangkennyk  路  3Comments

k-lusine picture k-lusine  路  3Comments

stephane-r picture stephane-r  路  3Comments

rahi-rajeev picture rahi-rajeev  路  3Comments