Is it OK to put JavaScript in Partial Views
问题 I’m working on the web app where the main page contains two parts: the constant block which is always visible and the info-block made up by one of 3 partial views. Each of the partial views appears as a result of AJAX request and is loaded just once (after that switching windows is provided by jquery). It works well but I’ve faced with one problem. The html-code of partial views contains js functions that are used in the constant block and in the info-block as well. When the page is loaded,