Reputation: 11746
I've noticed some strange behavior with my page being called twice.
I have the following HTML in the footer of my page:
<div class="col-sm-12">
<a href="javascript:void(0)" id="modal-link"><img id="modal-img" src="#" style="width:100%;"></a>
</div>
The code is part of a modal box that gets used on several pages and the href element gets set after document ready when needed. I've noticed that every page that includes this footer code gets called twice but if I comment out the line it doesn't.
Is there a reason this link gets followed automatically causing the same page to load twice?
Upvotes: 0
Views: 415