Welcome Guest, Not a member yet? Register   Sign In
jQuery class
#7

[eluser]osci[/eluser]
@Basketcasesoftware

I had encountered an opposite bug.

Note: I almost always put all my js in bottom (except analytics, in slow servers due to the
delay it has in loading I missed clicks - users were faster Smile )

To the bug. I was writing in a hurry html to do some checks and had my js on top. I had to calculate the height of 3 divs to do something to another. In IE and chrome IF I recall I was getting wrong values and of course the design was breaking. I tested and tested to understand why I wasn't getting correct values. It was in a jquery onload so I expected when it would fire.
I took my js to bottom and the values were correct and design stood nice.

So It's not always the case to put js on top, plus it is not recommended for speed (google favors speed nowadays).


Messages In This Thread
jQuery class - by El Forum - 06-20-2011, 11:55 AM
jQuery class - by El Forum - 06-20-2011, 12:13 PM
jQuery class - by El Forum - 06-20-2011, 04:02 PM
jQuery class - by El Forum - 06-20-2011, 04:28 PM
jQuery class - by El Forum - 06-20-2011, 04:43 PM
jQuery class - by El Forum - 06-20-2011, 07:11 PM
jQuery class - by El Forum - 06-20-2011, 07:26 PM
jQuery class - by El Forum - 06-20-2011, 09:49 PM
jQuery class - by El Forum - 06-21-2011, 02:49 AM
jQuery class - by El Forum - 06-21-2011, 11:42 PM
jQuery class - by El Forum - 06-22-2011, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB