Talking RequireJS at TakeOff Conf

So this week I attended my first conference outside of the UK and travelled to a freezing Lille, in Northern France (it’s been below freezing every day!) and spoke on RequireJS, something I have written about before.

In the future I will be doing a screencast on RequireJS in detail but for now I wanted to post up the slides and talk about the talk a little. You can view my slides on SpeakerDeck.

The main thing I said in my talk with RequireJS that I wanted to reiterate is that when you first start it, you’ll probably get frustrated. I know I did. The tipping point for me was when I figured out how to shim. When you first use Require it’s tempting to just ditch it when you encounter a non-AMD compliant library (such as Underscore), but shimming it is so simple:

require.config({
	shim: {
		'lib/underscore': {
			'exports': '_'
		}
	}
});

Something @mheap pointed out to me that once you have an optimised JS file, you can swap out the RequireJS source for Almond, a much more minimal AMD API that you can include into your build file - check the Github link for instructions on how to use.

I’m a huge fan of RequireJS and it’s now very rare that I start a new JS project without utilising it.



Don't miss my latest course, React in Five! This course will help you level up your React skills by covering lesser known parts of the React API. Each video is less than five minutes long, and the first four are free to watch. Get started now.


Subscribe to keep up to date with the latest content.

Join the JS Playground mailing list to be kept up to date with the latest tutorials, screencasts and more. You won't be spammed and you can unsubscribe at any time.


Headshot of Jack Franklin

Jack is JavaScript and React developer in London. He's also a keen Elm enthusiast, conference speaker and tweets far too often.