moving to the end of ready() isn't solution. we'll have flickering
anyway.
i'm not learning jQuery, i'm just using it. we can use simple JS in
described way and I just want to know could we do same with jQuery. if
it has some onload actions inside thier core, then we can't. it's
question for
On Mar 5, 7:33 am, MorningZ [EMAIL PROTECTED] wrote:
A good trick for that is to hide the content you are manipulating, and
then for the last line of the Ready() event, do a .show() and now
the only thing the user will see is styled and complete elements
And if scripting isn't supported or
I guess the question is: what are you trying to gain by NOT wrapping
it in document.ready?
I'm using jQuery for styling some elements, like first menu item,
selected item etc. When I run script right after this items it look
like they already have such style. When I move script in ready event
A good trick for that is to hide the content you are manipulating, and
then for the last line of the Ready() event, do a .show() and now
the only thing the user will see is styled and complete elements
I think what people are trying to get through to you, and i
wholeheartedly agree, is that it
To my knowledge, the main motivation for using ready and similar is
that otherwise, you have to pay close attention to where your scripts
are included in your page to ensure everything that the script relies
on has already been added to that page.
For example, if your script affects all
http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready
On Mar 3, 10:21 am, fetis [EMAIL PROTECTED] wrote:
Hi, all.
I often use jQuery outside ready() function. Like this
div id=asome html/div
script
$(#a).some actions
/script
Have this way some hidden troubles or it's
On Mar 3, 6:20 am, Hamish Campbell [EMAIL PROTECTED] wrote:
http://docs.jquery.com/How_jQuery_Works#Launching_Code_on_Document_Ready
But I'm not needed in code that running after page loaded. I just want
to add some class (for example) to already loaded element. Have I wrap
it into ready()
On Mar 3, 5:24 am, the_woodsman [EMAIL PROTECTED] wrote:
To my knowledge, the main motivation for using ready and similar is
that otherwise, you have to pay close attention to where your scripts
are included in your page to ensure everything that the script relies
on has already been added to
@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fetis
Sent: Monday, March 03, 2008 1:55 PM
To: jQuery (English)
Subject: [jQuery] Re: Using jQuery without ready()
On Mar 3, 5:24 am, the_woodsman [EMAIL PROTECTED] wrote:
To my knowledge, the main motivation for using ready and similar is
that otherwise
In that limited case, I supposed you don't 100% have to, but it's
still a **really** good idea.
First of all, you want your page to load before executing scripts.
There is nothing worse that JS failing half way through a page load,
it's faster to execute jQuery after the DOM has loaded, you can
10 matches
Mail list logo