I have the following setup:
- Index.html
- Signup.html
- Login.html
I want to call signup and login.html from index.html using a fancybox ajax call, but also be able to access the standalone pages. This means they all need to have a and include all css/js files. However this also means that two versions of jquery etc are being loaded when I'm calling them via an ajax call and this ends up causing other issues.
Is there an easy way to stop the loading on fancybox ajax calls?
Currently I simply have the following html:
<li><a class="fancybox fancybox.ajax" href="signup.html">Sign up</a></li>
And this JS:
$(".fancybox").fancybox({
fitToView : true,
autoDimensions : true,
closeClick : false,
closeEffect : 'none',
padding : 0
});