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 scr…


This content originally appeared on Jack Franklin and was authored by Jack Franklin

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.


This content originally appeared on Jack Franklin and was authored by Jack Franklin


Print Share Comment Cite Upload Translate Updates
APA

Jack Franklin | Sciencx (2013-01-19T00:00:00+00:00) Talking RequireJS at TakeOff Conf. Retrieved from https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/

MLA
" » Talking RequireJS at TakeOff Conf." Jack Franklin | Sciencx - Saturday January 19, 2013, https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/
HARVARD
Jack Franklin | Sciencx Saturday January 19, 2013 » Talking RequireJS at TakeOff Conf., viewed ,<https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/>
VANCOUVER
Jack Franklin | Sciencx - » Talking RequireJS at TakeOff Conf. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/
CHICAGO
" » Talking RequireJS at TakeOff Conf." Jack Franklin | Sciencx - Accessed . https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/
IEEE
" » Talking RequireJS at TakeOff Conf." Jack Franklin | Sciencx [Online]. Available: https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/. [Accessed: ]
rf:citation
» Talking RequireJS at TakeOff Conf | Jack Franklin | Sciencx | https://www.scien.cx/2013/01/19/talking-requirejs-at-takeoff-conf/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.