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

Use A Typescript Module/class In The Browser And In The Server (node.js)

How would I use the same typescript class or module in a client side javascript file and in a serve… Read more Use A Typescript Module/class In The Browser And In The Server (node.js)

Using Amd Module As An Aurelia Viewmodel

I was playing with Aurelia and seems pretty nice, I use Durandal for some projects and this definit… Read more Using Amd Module As An Aurelia Viewmodel

Adding Requirejs Module That Uses Jquery On A Page That Already Has Jquery As A Global

I have an add-on to an application (call it appX) that allows users to create their own customizati… Read more Adding Requirejs Module That Uses Jquery On A Page That Already Has Jquery As A Global

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

Creating A Reusable Requirejs Library

Given the following simplified scenario, how could I best construct my reusable component so that i… Read more Creating A Reusable Requirejs Library

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?

Requirejs Anonymous Dependency Not Defined

I have a problem with requirejs and a dependency being undefined. My setup is the following: var li… Read more Requirejs Anonymous Dependency Not Defined

How To Use Umd In Browser Without Any Additional Dependencies

Suppose I have an UMD module like this (saved in 'js/mymodule.js'): (function (global, fact… Read more How To Use Umd In Browser Without Any Additional Dependencies

Loading Spin.js With Require.js

I recently started a Javascript project and I am now moving it to require.js. Everything worked fin… Read more Loading Spin.js With Require.js

Optimize Requirejs Front-end Application

I am learning to use r.js to optimize/minify/uglify a front-end app. So far it is really cool and p… Read more Optimize Requirejs Front-end Application

Requirejs Does Not Follow Relative Path For Data-main With Baseurl Set

Using requireJS, I am trying to specify a path for my data-main that is different from the baseUrl.… Read more Requirejs Does Not Follow Relative Path For Data-main With Baseurl Set

Callback Before Requirejs "define" Function Is Called?

I'm new to Backbone, and i'm helping to maintain an app that has lots of Backbone and Requi… Read more Callback Before Requirejs "define" Function Is Called?

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?

Cannot Get Requirejs To Include Backbonejs

I am trying to modularize my Backbone app through Requirejs, but I cannot seem to get Requirejs to … Read more Cannot Get Requirejs To Include Backbonejs

Using Angularjs With Requirejs - Cannot Read Property 'module' Of Undefined

I had started writing an app using angularJS. After a few weeks, I suddenly realized that I should … Read more Using Angularjs With Requirejs - Cannot Read Property 'module' Of Undefined

Durandal (knockout) App With Multilanguage Support

I am building multilingual support for the app I'm working on. After doing some research and re… Read more Durandal (knockout) App With Multilanguage Support

Running Q On Page With Require.js

I am trying to run a widget on a web page that leverages the Q library. Unfortunately, the page al… Read more Running Q On Page With Require.js

Require.js Loosing Url Context

Using this url: 'localhost/app2/app.html' I would expect require.js to manipulate the path… Read more Require.js Loosing Url Context

Are Asynchronous Modules Always Asynchronous?

When multiple JavaScript modules are define()'d using AMD and concatenated into a single file, … Read more Are Asynchronous Modules Always Asynchronous?