Essential require.js plugins for large projects

April 25, 2012 10 Comments

When working on large javascript projects (like what we do in Backbone.js), its a godsend to have something like require.js to help you split your project into organized pieces. But in addition to require.js, there are quite a few require.js plugins out there that you should take advantage of.


depend.js - Rock solid loading of dependancies in order

This plugin (millermedeiros/requirejs-plugins) insures that a particular dependency is loaded prior to loading the next. I initially thought the order.js plugin accomplished this, but when you have things like jquery-ui plugins extending the base jquery-ui this can cause problems. The files would be requested in the correct order, but the plugin would load faster than the large `jquery-ui` library. Compiling was fine, but his caused intermentant errors during development. Depend.js solves this issue.


text.js - Text-based dependancies

This plugin (require.js) works great with the underscore.js _.template function. It allows you to load text-based files and use the content as a dependancy. I find this works much better than trying to load javascript templates in other ways (i.e. ajax requests or from the DOM). Also, when you run your project through the r.js compiler, all the templates are compiled right into your javascript!


cs.js - Coffeescript in require.js

This plugin (jrburke/require-cs) lets you intermix coffeescript and js dependancies within your project. All the coffeescript dependancies are complied in realtime allowing you to develop without the need to have coffeescript watch your directories for changes. Upon compiling with r.js (note: some special configuration is necessary), the files are compiled into javascript.

This is also an easy way to play around and learn coffeescript without the need to install it on your local system.

  • Ali - April 25, 2012 3:27 PM

    Very helpful. You need to post more like this Daniel :)

  • Daniel - April 27, 2012 5:59 PM

    Thanks Ali. Going to try and a post every week or two

  • Michaeldrali - March 25, 2019 6:13 AM

    We offer you the opportunity to advertise your products and services.

    Ciao! Please note an interesting offers for you. I can help you with sending your commercial offers or messages through feedback forms. The advantage of this method is that the messages sent through the feedback forms are included in the white list. This method increases the chance that your message will be read. The same way you received this message.

    Sending via Feedback Forms to any domain zones of the world. (more than 1000 domain zones.).

    The cost of sending 1 million messages is $ 49 instead of $ 99.

    All us sites that have a feedback form. (10 million messages sent) - $349 instead of $649

    Domain zone .com - (12 million messages sent) - $399 instead of $699

    All domain zones in Europe- (8 million messages sent) - $ 299 instead of $599

    All sites in the world (25 million messages sent) - $499 instead of $999

    Discounts are valid until March 31.

    Feedback and warranty!

    Delivery report!

    In the process of sending messages, we do not violate the rules of GDRP.

    This message is created automatically use our contacts for communication.

    Contact us.

    Telegram - @FeedbackFormEU

    Skype – FeedbackForm2019

    Email - FeedbackForm2019@gmail.com

    Sorry to bother you.

  • Wayneelack - April 8, 2019 5:22 AM

    My name is Pete and I want to share a proven system with you that makes me money while I sleep! This system allows you to TRY the whole thing for F R E E for a whole 30 days! That's right, you can finally change your future without giving up any sensitive information in advance! I signed up myself just a while ago and I'm already making a nice profit.

    In short, this is probably the BEST THING THAT EVER HAPPENED TO YOU IF YOU TAKE ACTION NOW!!!

    If you're interested in knowing more about this system, go to http://globalviralmarketing.com/?ref=qkgWOPkN5RoC1NWh and try it out. Again, it’s FREE!

    You can thank me later

    /Pete

  • Kevinsnida - May 6, 2019 10:16 PM

    Hello from Plan B - Funding Options LLC

    *If you're thinking about starting your own business or if you need funding for most other reasons there's 3 things that you need to keep in mind.

    1. You need to make a well thought out plan, try to cover everything you want to accomplish and think of what could go wrong along the way. You could create a business plan and or executive summary to use as your guideline. As a rule, it’s best NOT to ask family or friends for money its best to use (other people’s money) a funding source that you have no personal relationship with.

    2. Expect your plan to fail in part or full in many cases this will happen no matter how well you thought out your plan. Unforeseen obstacles and speed bumps often will come in your path that prevent your plans from going as you had projected.

    3.Always without exception have a (Plan B). And that's where we come in. We are your Plan B!

    *Please visit our website for details at: https://www.planbfundingoptions.com

    Email us for funding or questions info@planbfundingoptions.com

    Call Us : 949-682-9235 (California Office)

    **If you do not need funding at this time, perhaps you know someone who does. We Pay Referral Fees!!! See this link to the page on our website that explains what it means for you! http://www.planbfundingoptions.com/we-pay-referral-fees.html

  • DarylEnern - May 9, 2019 8:51 PM

    Hello there,

    Hope you are well.

    I’m Simon, Outreach Manager at a leading Digital Marketing Agency. I came across your website and read some of your articles. They are so unique and informative.

    I would be happy to establish a cooperation with you. We would like to promote our client’s services on your website through multiple articles with a do follow link.

    Please let me know whether you accept this kind of advertisement and what will be the best cost for publishing a guest post on your website. As we’re here for a long-term relationship, we would expect the best pricing from you.

    Please provide your details here: https://forms.gle/1HzNQYg46p6pTPmX9

    If you run more potential sites, feel free to submit all your worthy sites.

    Looking forward to your details.

    Thanks & Regards,

    Simon Cooper

    Outreach Executive

  • ShaneTic - May 16, 2019 1:36 AM

    Hi Look what we possess for you! an stimulatingpropose

    To be fit click on the link underneath

    https://drive.google.com/file/d/1jPajpeQ1GSe2rufuyCQjn19Joa76uq5X/preview

  • Anthony Smith - May 18, 2019 11:10 PM

    Hello there,

    I am Anthony & I’m currently working on an online campaign with a client who would be interested to post an article on your website. The article would discuss topics relevant to your readership and include a natural link to my client’s website.

    If you’re interested in guest post collaboration, please provide your pricing information through the form below or get in touch for more information.

    Provide Your Website Details: https://forms.gle/dZDaMutecFpyehAZ6

    If you run more potential sites, feel free to submit all your worthy sites.

    Looking forward to hearing from you.

    Thanks & Regards

    Anthony Smith

    Outreach Executive

  • RobertGrire - May 18, 2019 2:45 PM

    Ciao! dlrust.com

    Have you ever heard of the possibility of sending messages through feedback forms?

    We offer you to test this feature for free. Our database has all the sites in the world to which you can send the above message. At the moment it is more than 25,000,000 sites from around the world.

    When sending out we solve the captcha, as there is a possibility of solving recapch2.

    Discounts are valid until May 25.

    Feedback and warranty!

    Delivery report!

    In the process of sending messages we don't break the rules GDRP.

    This message is automatically generated to use our contacts for communication.

    Contact us.

    Telegram - @FeedbackFormEU

    Skype – FeedbackForm2019

    Email - FeedbackForm@make-success.com

    WhatsApp - +44 7598 509161

    http://bit.ly/2W7Odl2

    Sorry to bother you.

  • Andre William - May 22, 2019 6:03 PM

    Hello,

    I hope you are well. I have had a colleague pass over your details to me regarding your website in the hope you’d be interested in accepting a great article I am working on?

    Would you be able to let me know what your lowest budgets are to publish content on your blog, please? I write informative articles for websites readers, not just for Google and Include good research.

    I would be linking to Compare the Market and my budget is between £50- £100 GBP.

    Eagerly awaiting for your response

    Thanks,

    Andre William

    WMG Agency

    https://www.wmgagency.co.uk

Add a comment

Post categories

Post archives