[jQuery] caching result of selector in object, reusing

2009-09-16 Thread pantagruel
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

[jQuery] Caching of javascript files

2009-07-31 Thread dev
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

[jQuery] Caching jQuery objects

2009-07-21 Thread north
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

[jQuery] Caching nodes

2009-07-07 Thread Darko Romanov
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

[jQuery] caching getScript() :: ajax question

2009-02-10 Thread dirk w
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

[jQuery] caching AJAX data?

2008-07-08 Thread [EMAIL PROTECTED]
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 =

[jQuery] Caching in jquery autosuggest

2008-06-28 Thread uweheldt
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

[jQuery] Caching?

2008-04-25 Thread Juan Antonio IbaƱez Santorum
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

[jQuery] Caching issues jqModal??

2008-03-26 Thread Kenny1980
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

[jQuery] Re: jQuery caching DOM refferences? Performance issues

2008-02-12 Thread J Moore
-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

[jQuery] Re: jQuery caching DOM refferences? Performance issues

2008-02-11 Thread Jeffrey Kretz
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

[jQuery] Re: jQuery caching DOM refferences? Performance issues

2008-02-11 Thread Michal Popielnicki
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

[jQuery] jQuery caching DOM refferences? Performance issues

2008-02-10 Thread Michal Popielnicki
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

[jQuery] Re: jQuery caching DOM refferences? Performance issues

2008-02-10 Thread J Moore
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.