[jQuery] Re: optimizing

2009-02-15 Thread Ricardo Tomasi
Saving the elements beforehand (if they're not gonna change), rolling your own loop and doing only what is necessary inside it should increase performance already. I'm sure there are faster ways, knowing how the HTML is structured you could speed up the element look-ups too. $(document).ready(fun

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-08 Thread Frank
Hi Karl, I got it working in the end. I'm not sure why but $('table').simpletip ('a') just wouldn't work, whereas $('.adminTable').simpletip('a') did ("adminTable" being the class applied to my giant table). It's unclear why the latter would work and not the former, but at least it's all fine now

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-06 Thread Karl Swedberg
Hi Frank, Let me know how it goes with your testing. In the meantime, I converted the script to a plugin, so after you include it, you can just do this: $('table').simpletip('a'); This will display a tooltip for every link within the table element, using event delegation. It also has som

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-06 Thread Frank
Hm, how very odd indeed. There must something else on my page conflicting with it then. I'll strip it to the barebones and work my way back up. Thanks for all the help so far! May I also say that your website (learningjquery.com) has been an invaluable font of knowledge for jQuery, as well as bot

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Karl Swedberg
Ok, I dropped your table into my page, and it seems to work fine. http://test.learningjquery.com/very-simple-tooltip.html --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 5, 2008, at 11:45 AM, Frank wrote: Also, I just realised that putting "title"s on

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Frank
Also, I just realised that putting "title"s on TDs is a silly idea, and completely invalid. But I tried it with a direct copy of your script after putting actual links in, but still only get empty tooltips. Here is an example row: Abridged Title - - - - - - - - - - - Y 2 06:01, 05

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Karl Swedberg
On Dec 5, 2008, at 11:17 AM, Frank wrote: Here was my attempt at modifying the original script by the way, which gave very, very strange results. :) $(".adminTable").hover(function(e){ Hi Frank, The first problem in your modification to the script is that you stuck with the .ho

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Frank
Simply exchanging "A" for "TD" in your script didn't work (that would have been too easy :), it only pops up empty tooltips. I'll continue to play with it.

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Frank
Hi Karl, Thanks for your comprehensive reply! I'll give that a go as soon as I can. I need the tooltip for TDs rather than links but that shouldn't be hard to modify I hope. Here was my attempt at modifying the original script by the way, which gave very, very strange results. :) $(document).re

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Karl Swedberg
Hi Frank, Just for kicks, I cranked out my own very simple tooltip script. It isn't a plugin. Yet. But it gets the job done. Basically, it binds the event listeners to a table (since that's what you said you had) and uses event delegation to look for any links within the table. The toolti

[jQuery] Re: Optimizing Animate For Large Number of Attributes/Objects

2008-09-08 Thread Karl Rudd
What version of jQuery are you using? I just tested the animate function in 1.2.6 and it only installs 1 timer. In the 1.2.6 uncompressed source the interval timer creation is on line 3231. You can put a console.log message, break point or alert on that line and see for yourself. You do see a dif

[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-16 Thread Klaus Hartl
Yes, that's the correct location. --Klaus On 17 Jun., 01:49, Illah <[EMAIL PROTECTED]> wrote: > Hey Klaus, > > Thanks for the input - adding the ui-tabs-nav class prevents the flash > of unstyled nav buttons, but the ui-tabs-panel class doesn't seem to > be helping with the content within the t

[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-16 Thread Illah
Hey Klaus, Thanks for the input - adding the ui-tabs-nav class prevents the flash of unstyled nav buttons, but the ui-tabs-panel class doesn't seem to be helping with the content within the tabs...it still seems to be waiting for the page to load before snapping the content into the tabs. I'm ad

[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-15 Thread Klaus Hartl
If you want to prevent a flash of unstyled content, you can add the classes that are added by the plugin right away to your HTML: ... ... And in case you want to keep your panels hidden: ... --Klaus On 14 Jun., 06:12, Illah <[EMAIL PROTECTED]> wrote: > Thanks for the feedback...so I guess I

[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-14 Thread Illah
Thanks for the feedback...so I guess I was correct in my assumption that the general page load was affecting the script? The majority of that ~1MB page load is the images, and I can't really get rid of those (all the flash will be gone soon, it's part of an ad campaign ending this weekend). I ch

[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-14 Thread Illah
Thanks for the feedback...so I guess I was correct in my assumption that the general page load was affecting the script? The majority of that ~1MB page load is the images, and I can't really get rid of those (all the flash will be gone soon, it's part of an ad campaign ending this weekend). I ch

[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-13 Thread Joe
Hmm, I think it has to do with the enormous page weight (Firebug calculates it at 1.05 MB). I would look for an overall optimization first to the site's weight (optimize images, clean up markup, pack/ minify javascript and/or CSS files at a minimum). I ran into an issue with having to maintain a