Skip to content Skip to sidebar Skip to footer
Showing posts with the label Requirejs

Limit Line Length With Requirejs + Uglify

We're using requirejs.optimize(config) with uglify2 in our build scripts to minify our producti… Read more Limit Line Length With Requirejs + Uglify

Module Pattern- How To Split The Code For One Module Into Different Js Files?

For the module pattern, I'm doing something like: (function(namespace) { // tons of code … Read more Module Pattern- How To Split The Code For One Module Into Different Js Files?

Can't Get Backbone-relational To Work With Amd (requirejs)

I have the following Backbone router definition in CoffeeScript: // appointments_router.js.coffee d… Read more Can't Get Backbone-relational To Work With Amd (requirejs)

Requirejs Order Of Dependencies

if you have a RequireJS module like so: define( [ '#patches', 'back… Read more Requirejs Order Of Dependencies

Load Stripe.js With Require.js

I'm having trouble loading Stripe.js with Require.js. My setup looks a bit like this requirejs.… Read more Load Stripe.js With Require.js

Is It A Bad Practice To Use The Requirejs Module As A Singleton?

I plan to use the following pattern to make use of the requireJS based module to act as a singleton… Read more Is It A Bad Practice To Use The Requirejs Module As A Singleton?

How To Use Jquery Ui With Requirejs And Knockout-sortable?

I'm trying to use requireJS to manage dependencies in my first ever single-page javascript app.… Read more How To Use Jquery Ui With Requirejs And Knockout-sortable?

Can We Export Multiple Non-amd Functions From A Module In Requirejs?

If I have a non-AMD module named old.js and inside this script I have two functions f1 and f2 defin… Read more Can We Export Multiple Non-amd Functions From A Module In Requirejs?

How Do I Use Jquery Ui With Requirejs

I want to use jQuery UI's addClass function in my application. Beside I am using the normal jQu… Read more How Do I Use Jquery Ui With Requirejs

Unable To Call Functions With Require.js

i try to write an module for my node.js server with require.js that just returns the object i want … Read more Unable To Call Functions With Require.js

Babel/requirejs + Typeof "rangeerror: Maximum Call Stack Size Exceeded"

I have a very basic JS error and I'm quite ashamed to not be able to solve it... I'm develo… Read more Babel/requirejs + Typeof "rangeerror: Maximum Call Stack Size Exceeded"

Handlebars Not Loading After Require.js Optimization With Grunt-requirejs

I'm using the Yeoman Backbone generator for my app. I wanted to use Handlebars for templates. W… Read more Handlebars Not Loading After Require.js Optimization With Grunt-requirejs

How To Wait When Data-main Is Loaded With Require.js Before Executing Script?

I'm having the following code: Solution 1: Ended up doing the following, which isn't … Read more How To Wait When Data-main Is Loaded With Require.js Before Executing Script?

Circular Dependencies For A Web App Using Backbone.marionette And Requirejs

I am in the following situation. I am using requireJs to loads module and I don't want to use g… Read more Circular Dependencies For A Web App Using Backbone.marionette And Requirejs

Megapiximage Error From Fineuploader When Loading Page With Requirejs

I am refactoring my application to use RequireJS (using the sbt-web abstraction in Play Framework, … Read more Megapiximage Error From Fineuploader When Loading Page With Requirejs

Requirejs Search For App.app Instead Of App.js (where App.js Is Entry Point Specified In Data-main)

Problem: I have a trivial demo application which use requireJS. When require.min.js script loads, … Read more Requirejs Search For App.app Instead Of App.js (where App.js Is Entry Point Specified In Data-main)

Load External Scripts With Requirejs Without Access To Config

I'm trying to load the datatables javascript library in a plugin that I'm writing. The issu… Read more Load External Scripts With Requirejs Without Access To Config

How To Reload A File Via Require.js Triggered From The Browsers Js Console

Having a text file (underscore templates) loaded by require.js on initial app start: define(['t… Read more How To Reload A File Via Require.js Triggered From The Browsers Js Console

Window.onload Not Running On Page Refresh

I just started using RequireJs. Only one problem. Can someone explain why the code inside the requi… Read more Window.onload Not Running On Page Refresh

Exporting Createjs Lib Assets For Use With Require.js

I'm trying to use assets (vector, movieclips, etc.) exported from the Flash IDE for CreateJS bu… Read more Exporting Createjs Lib Assets For Use With Require.js