What is a "Javascript Bootloader"?

Abdullah Khan picture Abdullah Khan · Aug 13, 2010 · Viewed 10.7k times · Source

I have seen this mainly in the source of Facebook Bootloader.setResourceMap({"bMxb7":{"name":.... What is exactly a bootloader in javascript? What is its use and purpose?

Answer

Adam Lassek picture Adam Lassek · Nov 9, 2010

Bootloader is an important part of Facebook's front-end code, which allows Javascript libraries to be lazy-loaded as needed instead of on page load. A couple of Facebook developers go into further detail here if you'd like to know more.

You can use RequireJS, LABjs or others to achieve the same thing.