I want to run some jquery code before my page have loaded. Im adding some classes which are changing the css with javascript, and when the page loads i see the \"old\" css f
Put your code in document ready. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded
$(function(){ your code goes here... });
Or
$(document).ready(function(){ your code goes here.. });