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

Why Do I Need To Load Jquery Twice

In my html page, I need to put jquery twice. If I take anyone of them out my page , then the page d… Read more Why Do I Need To Load Jquery Twice

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

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

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

How Does Amd (require.js) Handle Multiple Classes In A Single Non-amd Js File?

I'm using a bunch of components from the MootoolsMore library which are all compiled into a sin… Read more How Does Amd (require.js) Handle Multiple Classes In A Single Non-amd Js File?

Require Js Is Ignoring My Config

I'm having pretty simple directory structure for scripts: /js/ Solution 1: Solved. The … Read more Require Js Is Ignoring My Config

How To Load Ace Editor With Requirejs From Cdn?

I am trying to load the ace editor from a CDN with requirejs. Here is a plunkr which illustrates my… Read more How To Load Ace Editor With Requirejs From Cdn?

Loading Angular From Cdn Via Requirejs Is Not Injected

In my project I want to use RequireJS and bootstrap my app as follows: requirejs.config({ baseUrl: … Read more Loading Angular From Cdn Via Requirejs Is Not Injected

Javascript Regex To Match A Pattern But Not Match A Regex Literal (r.js Optimizer And Uglify Issue)?

I've got a Backbone application, organized into modules using Require.js. One of these modules … Read more Javascript Regex To Match A Pattern But Not Match A Regex Literal (r.js Optimizer And Uglify Issue)?

Require Js Ruins Code Navigation

require.js states the way of defining objects inside modules with define([requiremens], object) as … Read more Require Js Ruins Code Navigation

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

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

Datatables+requirejs: Cannot Read Property 'defaults' Of Undefined

I have downloaded the full package of DataTables with all its module, since it can't be accesse… Read more Datatables+requirejs: Cannot Read Property 'defaults' Of Undefined

How To Document A Require.js (amd) Modul With Jsdoc 3 Or Jsdoc?

I have 2 types of Modules: Require.js Main File: require.config({ baseUrl: '/another/… Read more How To Document A Require.js (amd) Modul With Jsdoc 3 Or Jsdoc?

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?

Backbone.js And Require.js: Mismatched Anonymous Define() Module: Function (_, Backbone) {

I am new to using require.js and have the following app.js file as part of my backbone app: require… Read more Backbone.js And Require.js: Mismatched Anonymous Define() Module: Function (_, Backbone) {

Cannot Read Property 'view' Of Undefined

This is my first time to use require.js with backbone, and I'm struggling to find the problem w… Read more Cannot Read Property 'view' Of Undefined

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 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

How To Send Additional Javascript Code To Client From Nodejs Server After Page Load

When a popup shows up on my website, I want the div in that popup rendered one of many different wa… Read more How To Send Additional Javascript Code To Client From Nodejs Server After Page Load