Re: How does firebug use requirejs to load extensions?

36 views
Skip to first unread message

Jan Honza Odvarko

unread,
Feb 1, 2013, 7:28:32 AM2/1/13
to Firebug
Firebug was using RequireJS in the past, but not it's using custom
simple module loader.

Here is the place where the loading starts
https://github.com/firebug/firebug/blob/master/extension/content/firebug/main.js#L77

Honza

On Feb 1, 11:08 am, Pulkit Bhuwalka <pulkit.bosc...@gmail.com> wrote:
> Hi,
>
> i am working on a project which involves loading plugins dynamically using
> requirejs. I wanted to have a look at how firebug is using requirejs to
> load its extensions. I would appreciate it if someone could point me in the
> right direction in the firebug sourcecode to see how firebug uses requirejs
> to manage extensions.
>
> Thanks for the help.
>
> -Pulkit

Pulkit Bhuwalka

unread,
Feb 5, 2013, 11:43:26 AM2/5/13
to fir...@googlegroups.com

Hi Honza,

Thanks for your reply. I'll take a look at how its done.

Could you let me know what led to firebug moving out of requirejs? It would help me take a better decision on my project.

Best,
Pulkit

Jan Honza Odvarko

unread,
Feb 5, 2013, 12:22:58 PM2/5/13
to Firebug
On Feb 5, 5:43 pm, Pulkit Bhuwalka <pulkit.bosc...@gmail.com> wrote:
> Hi Honza,
>
> Thanks for your reply. I'll take a look at how its done.
>
> Could you let me know what led to firebug moving out of requirejs? It would
> help me take a better decision on my project.

While I think RequireJS is great (and I personally use it in my other
web-based projects)
it's relatively heavy for Firebug since solving many scenarios
(including
cross browser support).

AMD syntax in Firebug is simple and we don't need such complex
support.
So, we decided to use simple loader (~200 lines) that is easier to
debug and
also a bit faster.

Honza

Pulkit Bhuwalka

unread,
Feb 5, 2013, 2:02:41 PM2/5/13
to fir...@googlegroups.com

Thanks a lot for your inputs. This is very helpful.

Best,
Pulkit
Reply all
Reply to author
Forward
0 new messages