I have this code: First.html ..
<script type="text/javascript" src="../js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="../js/jquery-ui.min.js"></script>
<script type="text/javascript" src="../js/prj1100.js"></script>
<LINK href="../css/prj1100.css" rel="stylesheet" type="text/css">
..
Event to load page.html
jQuery(".content").click(function(){
$(".content_2").load('page.html');}
Inside page.html, there are:
<script type="text/javascript" src="../js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="../js/jquery-ui.min.js"></script>
<script type="text/javascript" src="../js/prj1100.js"></script>
<LINK href="../css/prj1100.css" rel="stylesheet" type="text/css">
<?php
...
This code works perfectly however when click more than one time to load this page is taking too much time to show page.html. Its seems that .load() instance every time .js into memory.
I included on page.html again because declared on first.html not inherited to page.html.
How can I improve this code ?
RangeError: Maximum call stack size exceeded?