jQuery Bug: Page freezing


#1


https://www.codecademy.com/courses/web-beginner-en-bay3D/2/3?curriculum_id=50a3fad8c7a770b5fd0007a1


The codecamy page freezes immediately after typing the innermost dollar sign. I have tried both with Safari and Chrome.


$(document).ready($);


#2

@methodcoder76798,
The $-sign is redefined as representing the jQuery executable.....

If you use

$(document).ready();

you are using a jQuery-facility which
causes the jQuery-interpreter to watch the so-called ready-state event-flag to be =set=.

The ready-state event-flag is set when the HTML-document is loaded
and the so-called DOM can be manipulated.

If the ready-state event-flag is set then jQuery will =execute= any thing which is between the parentheses-( ) of the ready() Method.....

So in this case it will call jQuery !!!! as you have entered the $-sign.....


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.