|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
goalsurfer Smarty Rookie
Joined: 30 Oct 2009 Posts: 29 Location: Brussels
|
Posted: Sun Mar 13, 2011 10:12 am Post subject: active content jquery loads too slowly |
|
|
This is the code used for the tabs:
Code: | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
{literal}
<script type="text/javascript">
$(document).ready(function() {
$(".tab_content").hide();
$("ul.tabs li:first").addClass("active").show();
$(".tab_content:first").show();
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active");
$(this).addClass("active");
$(".tab_content").hide();
var activeTab = $(this).find("a").attr("href");
$(activeTab).fadeIn();
return false;
});
});
</script>
{/literal} | on page:
http://brusselieren.be/index10.php
The active content loads very slowly, maybe after half a minute or more the first tab for hotels becomes clear blue as the content <div></div>
Only then you get the calender when clicking on check-in or check-out.
Is there any plugin to solve this? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|