I have use following method to load html content to my index,
$("#home-btn").click(function() {
$("#content").load("views/plant.html");
});
It's loading the html contents correctly, but i have used some external js files that related to the html's and link the related external js files to my index html. Issue is, missing the effects form external js in the html contents that i have load. How can I fix it?
<script>tag in eitherplant.htmlorindex.html?index.htmllazyloadmethod, that will be good if you are trying to load JS on click or any other event, it avoid load on first page loading time.jswithhtmlload