# Slick Image Gallery

**URL:** <https://meta.discourse.org/t/slick-image-gallery/81952>\
**Category:** Theme component\
**Tags:** broken\
**Created:** [6월 29, 2018, 6:15오전 UTC](https://meta.discourse.org/t/slick-image-gallery/81952 "2018-06-29T06:15:00Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [11월 10, 2018, 7:12오전 UTC](https://meta.discourse.org/t/slick-image-gallery/81952/28 "2018-11-10T07:12:50Z")

</div>

> [@cwmke](#):
>
> I’m wondering why this component calls slick.min.js from cloudflare instead of being packaged with the component?

At the time, the Discourse theme system was a bit different.

Scripts added to a theme / component used to be loaded inline in the `<head>` of the document. It made a lot more sense to load it from a CDN.

Discourse themes now handle scripts much better thanks to @xrav3nz’s work ❤ 🙌

[https://github.com/discourse/discourse/commit/6acdea37c4e77723c774152e9076dfedda99493a](https://github.com/discourse/discourse/commit/6acdea37c4e77723c774152e9076dfedda99493a)

scripts are now pulled into an external `theme.js` file.

So, it now makes sense to bundle slick into the theme instead of loading it from a CDN.

I just pushed a small update for that 👍

---

_[View the full topic](https://meta.discourse.org/t/slick-image-gallery/81952)._
