[jQuery] unwanted delay with css()

[jQuery] unwanted delay with css()


Hi,
I'm running an A/B test using a 3rd party javascript testing app. I'm
loading the jquery script with the tool.
<script>
$(document).ready(function(){
$(".cartInStock").css({display : " none "});
});
</script>
The problem is that the original CSS displays (what I want to hide)
while the page is loading, but as soon as it finishes the the script
updates the css and the element disappears.
The script itself loads fairly high up on the page. I'm not sure if
this is the script or the A/B testing tool causing the delay.
Any suggestions?