Charan raj

Charan raj

  • NA
  • 12
  • 11.2k

single page application with kendo ui

Feb 28 2014 4:44 AM

We are planning to develop single page application with kendo ui,jquery and require.js.

in my application we have multiple views and we will show at a time only one view.

and view related javascript file included in the view only.

view.html(for refference only)

// html content "VIEW1" some html content(user form)

for the user form related events and view models are included a.js file

when i click on next button in "VIEW1" i loaded the "VIEW2" html

// html content "VIEW2" some html content(personal info form)

b.js contain personal info view model and personal info events.

its working properly.. my quoetion is if i use require.js for loading view, views related javascript file will be added to the head of the body.

if i go to the VIEW1 and a.js file append to head tag, now i go to the VIEW2 and b.js file append to head tag. but i removed the VIEW1 then how can i remove the VIEW1 related js files.