# Material Design Experiments

**URL:** <https://meta.discourse.org/t/material-design-experiments/38398>\
**Category:** UX\
**Created:** [January 24, 2016, 9:05am UTC](https://meta.discourse.org/t/material-design-experiments/38398 "2016-01-24T09:05:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ccdw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ccdw/32/51564_2.png) [@ccdw](https://meta.discourse.org/u/ccdw)\
**Post date:** [January 24, 2016, 8:45pm UTC](https://meta.discourse.org/t/material-design-experiments/38398/6 "2016-01-24T20:45:29Z")

</div>

> [@Falco](#):
>
> Sorry if I’m just being dumb but won’t putting the script tag in the head solve this?

Scripts are loaded asynchronously meaning code dependent on the script, unless the availability of the script is tested, could be called before the script is available …

Require and other similar libraries ensure, as best they can, the script is there before the code, example Packery, is run. Most of the time, assuming the script is delivered very quickly, there won’t be a problem (jQuery delivered via Google CDN for instance…) - but good practice dictates you hook into something like Require before attempting to run code that depends on script contents. Unless I am mistaken, Discourse uses Require in places.

Edit: Metafizzy shows how to use Require with it products:

```
requirejs( ['path/to/packery.pkgd.js'], function( Packery ) {
  new Packery('#container');
});

```

> [@Falco](#):
>
> \*I know Discourse is opensource, this means I can use Isotope on the free license?

I believe you can use Metafizzy products in this way, although I’ve been using Isotope and Packery for years, and have benefitted greatly from them, so tend to buy a licence, even if I don’t legally need to.

---

_[View the full topic](https://meta.discourse.org/t/material-design-experiments/38398)._
