Skip to content

Instantly share code, notes, and snippets.

@csdy
Last active December 16, 2015 18:38
Show Gist options
  • Select an option

  • Save csdy/5478653 to your computer and use it in GitHub Desktop.

Select an option

Save csdy/5478653 to your computer and use it in GitHub Desktop.
Disable LESS.js caching
<!-- CLIENT-SIDE SCRIPTS: BEGIN -->
<script>
var less = {
env: "development"
}
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js"></script>
<script>window.less || document.write('<script src="/js/vendor/less-1.4.1.min.js"><\x3C/script>')</script>
<!-- CLIENT-SIDE SCRIPTS: CLOSE -->
@csdy

csdy commented Apr 28, 2013

Copy link
Copy Markdown
Author

Notice the LESS environment declaration BEFORE including less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment