script defer

1 Answer 264 Views
General Discussions
Laurent
Top achievements
Rank 2
Iron
Iron
Laurent asked on 29 Mar 2022, 09:06 AM

Hi team,

Is it possible to reference kendo js with "defer" attribute?

<!-- Reference to the Kendo UI JavaScript file -->
        <script DEFER src="js/kendo.all.min.js"></script>

 

Any contraindications?

 

Thanx

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 01 Apr 2022, 08:19 AM

Hello Laurent,

If you need to defer the scripts loading you could use the jQuery.Deferred(). I would suggest you to take a look at the Dojo linked here where the scripts will be loaded on a button click and the Kendo UI for jQuery Scheduler will be rendered. 

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions
Asked by
Laurent
Top achievements
Rank 2
Iron
Iron
Answers by
Neli
Telerik team
Share this question
or