Menu icon Foundation
Using foundation 6 with private jQuery

Hey folks,

Is it possible to use foundation with private jQuery? I am using RequireJS and when I try to require it like:       

        require(['jqueryloader', 'foundation'], function($) {

            console.log($);

            $(document).foundation();

        });

jqueryloader is just returned jQuery.noConflict(true);

Console log says it is jQuery, but $(document).foundation(); call fails due to $(...).foundation not being a function.

 

I know that when I require a library that is not an AMD module, I can't control the load order.

Any thoughts on this?

privatejqueryjavascriptscoperequireJSamd

Hey folks,

Is it possible to use foundation with private jQuery? I am using RequireJS and when I try to require it like:       

        require(['jqueryloader', 'foundation'], function($) {

            console.log($);

            $(document).foundation();

        });

jqueryloader is just returned jQuery.noConflict(true);

Console log says it is jQuery, but $(document).foundation(); call fails due to $(...).foundation not being a function.

 

I know that when I require a library that is not an AMD module, I can't control the load order.

Any thoughts on this?