Hi,
I have some selectors - an example would be $(#LinkToPreviousHit)
all of which work fine when used directly.
If I use it to toggle the class, which also works, I might do -
$(#LinkToPreviousHit).attr({class: activeNavButton});
since I am using my selectors in multiple places I figured I
Hello,
If two sites, www.domainA.com and www.domainB.com both use jQuery and
allow script caching.
(sample tag script src=/resources/jquery-1.3.2.js type=text/
javascript/script)
In browser, in user's computer, will the two sites use the same copy
of jQuery (assuming both running same jquery
Hi,
I just created a little widget using jQuery. The code is kinda ugly,
but I'm trying to improve it at least a bit. The first thing I wanted
to do was to cache the jQuery objects. In this case I created global
variables for this.
Besides the global variables, I have a couple of functions
Hi there,
I'm developing a site that has some js visual effects and many graphic
elements to move. So I have to take care of each single query on the
DOM as it could take too much time to be executed, resulting in a
flicking animation.
I thought I could cache in memory a node and then querying
hello,
i am getting a script which calls back some json to my function
showMyVideos.
during my research in this group i read that getScript wouldn't cache.
in my case i would like to add some cache (lazy loading) to my
getScript function since it isn't necessary to update a already
searched
Hi folks,
I have a page with a photo and comments on it. I load the replies to
the comments for this photo via an AJAX request like so (I also use
LiveQuery):
JavaScript:
/* Show Replies button action. */
$(.show_replies).livequery('click', function()
{
var photo_id_val =
Hi there,
we are developing some autosuggest features for a website and using
the query autosuggest plugin. No question about the plugin itself.
What do you think about server side caching within the suggest
functions? Is this useful? I thought abaout a MRU on the server side.
But wont the cache
Hello!
I need to load a value (returned by a php script) into a textbox each 10
seconds, and reload web if this value change. I'm using next code:
script src=jquery.js/script
script
$(document).ready(function()
{
//ajaxTime.php is called every second to get time from server
var
Hi,
I got some problems using jqModal and ajax. I found some posts about caching
issues with jqModal, but those solutions didn't help.
==
page1.php
...
ul
li id=item_1Item 1/li
li
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michal Popielnicki
Sent: Monday, February 11, 2008 5:41 AM
To: jQuery (English)
Subject: [jQuery] Re: jQuery caching DOM refferences? Performance issues
Hi there, and thanks for the reply
Popielnicki
Sent: Monday, February 11, 2008 5:41 AM
To: jQuery (English)
Subject: [jQuery] Re: jQuery caching DOM refferences? Performance issues
Hi there, and thanks for the reply.
Actually there is no visible bottleneck yet and I can't really point
it out since the javascript behind the app
Hi there, and thanks for the reply.
Actually there is no visible bottleneck yet and I can't really point
it out since the javascript behind the app is massive and it results
in poor performance under Opera (which is very strange, since its the
fastest browser supporting JS) .
However I was
Hi there!
I've been dealing with some performance clean-up of a code of a web-
app that I wrote and I was wondering if jQuery does caching of the DOM
references. Lets say I have a function:
function myFunction(){
$('#foo').attr(bar);
}
I frequently refer to the function, so is it the case that
You can profile javascript with firebug and see total calls for
different approaches and how long they take.
That said, $('#id') is fast, since it is basically getElementById() a
native javascript method. However, if you call $('#id') 100x, you'll
see that it's faster to cache it in a variable.
14 matches
Mail list logo