My page is altered after loading by a lot of jQuery to get the layout I want. (Decision based alignment etc.) But at first when I load it it doesn't work (messed up alignment). I close it, follow the link to the page and it works perfectly. But then I refresh the page (F5) and it's messed up again. And it seems to function differently on Chrome and Firefox.
I call the function like this:
<script>
$(document).ready(function() {
$.fn.altlayout();
});
</script>
This seems very peculiar to me. Maybe I'm missing something basic? Like how JS works with caching(?) perhaps? Thanks.