This is a migrated thread and some comments may be shown as answers.

Kendo UI, RequireJS and the bundles

1 Answer 145 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Dan Lewis
Top achievements
Rank 1
Dan Lewis asked on 10 Jan 2014, 10:51 AM
Hi,

I have been loading kendo.web.min.js along with a culture file using the RequireJS shim method along with the deps option set as follows:
require.config({
    paths: {
        "jquery": ["jquery-1.10.2.min"],
        "kendo": ["kendo/kendo.web.min"],
        "kendo-cultures-en-gb": ["kendo/cultures/kendo.culture.en-GB.min"],
        "bootstrap": ["bootstrap.min"]
    },
    shim: {
        'bootstrap': {
            deps: ['jquery']
        },
        "kendo": {
            deps: ["jquery"]
        },
        "kendo-cultures-en-gb": {
            deps: ["kendo"]
        }
    }
});
I then noticed in the offical documentation that it is recommended to avoid using the Kendo UI bundles with RequireJS: http://docs.kendoui.com/getting-started/using-kendo-with/using-kendo-with-requirejs.

As I haven't had any particular issues with this approach (yet!) I wondered, if this was still the official recommendation and that I should revert to script tags for Kendo, or whether I can continue using the above method?

Regards,

Dan.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Jan 2014, 11:58 AM
Hello Dan,

Using RequireJS with Kendo UI bundles such as kendo.web.min.js is not recommended because it is meaningful to use RequireJS loading for individual widget scripts, from performance/modular perspective. Still if everything works without issues with your configuration, feel free to continue using your approach.

Regards,
Sebastian
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Integration with other JS libraries
Asked by
Dan Lewis
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or