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

Migrating From Requirejs To Webpack

I'm migrating/moving a project based on require.js to webpack v3. Since all my modules are usin… Read more Migrating From Requirejs To Webpack

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 Disable Amd On 4 Files And Load Them In Order With Webpack

I need to disable AMD on 4 files and load video.js first before loading the other 3 files, because … Read more How To Disable Amd On 4 Files And Load Them In Order With Webpack

Handling Load Timeouts Of A View In A Durandal App

I've got a Durandal app that will periodically timeout when attempting to load a view. Here… Read more Handling Load Timeouts Of A View In A Durandal App

Event Handling With Subclasses

Based on this question. I'm moving from RequireJS to browserify (together with babelify) and tr… Read more Event Handling With Subclasses

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

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

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

Dependency Injection In Context Of Backbone.js

I heard a lot about dependency injection(DI) in angular js. how we can achieve the same in backbone… Read more Dependency Injection In Context Of Backbone.js

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

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

Requirejs Multiple Module In Single File

I want to merge multiple modules into a single file, but I can't find an official document abou… Read more Requirejs Multiple Module In Single File

Calling Methods In Requirejs Modules From Html Elements Such As Onclick Handlers

I'm changing a project from an 'old' browser-style module structure to a 'new' … Read more Calling Methods In Requirejs Modules From Html Elements Such As Onclick Handlers

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 Solve Circular Dependency In Require.js?

Basically, the idea is that 'sub' module creates an object, and that object should be part … Read more How To Solve Circular Dependency In Require.js?

Bundling And Minifying Modular Javascript (requirejs / Amd) With Asp.net Mvc

Does anyone have any experience with or know any good solutions for bundling and minifying modular … Read more Bundling And Minifying Modular Javascript (requirejs / Amd) With Asp.net Mvc

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

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

Marionette Js Access To App From Controller With Requirejs

I want to get access to my main app instance from main controller to render new View. What i want t… Read more Marionette Js Access To App From Controller With 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