JQuery :: Multiple Bindings On One Site Slow Down Performance?

May 11, 2010

On our website we wanna bind a click (or maybe mouseover)-event on every user-image. The click on the image should open a layer with further information about the user. Now i look for a best practice way to solve this (focus on performance), because there could be a lot of user-images on one side. I think, if i bind the event on a class like this

jQuery('.myclass').bind('click', function(
makerequest;
openlayer;
))

that could slow down the site, because i read, that "The class selector is the slowest selector in jQuery". Back to the roots and insert an onclick(function) to the element, but i'm not realy happy with that solution.

View 1 Replies


ADVERTISEMENT

JQuery :: Performance On Img Slider On Site?

Jul 30, 2010

[URL]...why this is getting amazingly slow after running some while?

View 1 Replies View Related

Improve The Web Site Loading Performance?

Apr 10, 2009

How to improve the web site loading performance. My current site takes average time 18 sec. to load in first time. and 2nd time refresh it takes 12 sec. through YSlow I am observing the request time it more. how to achieve the better performance. My html code is very much clean and w3c validated.

View 1 Replies View Related

JQuery :: Install On IE7 - 1000+ Workstations - Users Accessing The Site From A Very Slow Network

Feb 4, 2011

I am about to launch a SharePoint site with thousands of users accessing the site from a very, very slow network. Two questions. Is there a way to 'install' jquery so that it doesn't download every time they access the site?

_All_ users are on the same domain and are using IE7. Once they download JQuery on the initial page visit, does it still redownload the file every time they access the site? Temporary internet files don't get cleared after each session, so I'm assuming it doesn't get re-downloaded.

View 2 Replies View Related

Site Slow In IE7 - Speed It Up?

Apr 6, 2010

I've got the following site that loads great in FF and Chrome (no surprise), but is terribly slow in IE7. It's even quick in IE6, but not 7. Here's the site code...

Now I'm using JQuery in a couple places, but it's by no means nothing crazy. The page is fairly simple.

I thought of preloading the main content images, but even after they are loaded in the cycle, the loading time is still slow.

View 10 Replies View Related

Slow Loading Site

Apr 1, 2006

I put a javascript for a preload in it and it hasnt helped the front page. Right now the header is swish and we took that out and it still took over 2 minutes to download on DSL. I do have the JS anthology book but the script in there didn't work for us. Come to think of it I have almost all of the sitepoint books. Does anyone have any suggestions.

View 3 Replies View Related

JQuery :: Multiple Parallel Ajax Calls - Improving Performance?

Apr 23, 2010

I'm trying to build a page that has multiple ajax calls on it. When you do it the old-fashioned way with XmlHttpRequest, you'd create a new xhr object for every call so that they execute simultaneously. If I try to do this in jquery it will only execute a call when the previous one has completed. This makes the page load time completely unacceptable. How to improve the performance?

View 2 Replies View Related

JQuery :: Making Multiple Divs Appear Or Disappear When Diff Sections Of Site Are Scrolled To?

Jul 14, 2011

I am trying to create a fixed crest at the top of my site that changes depending on where the viewer of the site scrolls to.

I found the following script/plugin on StackOverflow that works well for making one element fade in and fade out.

PART ONE:

function isScrolledIntoView(elem) {
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();
var elemTop = $(elem).offset().top;

[Code].....

I then duplicated part two and changed the variables to make a different div appear in this position depending on where the viewer was in the site but it did not work past the first transition. see the following link to get a better idea what I am trying to achieve.

[URL]

Is there any way I can adjust the script to make it work with multiple transitions?

View 2 Replies View Related

Search Fields For Multiple Site Searching

Sep 4, 2007

I want to make a search field for my site where the user can enter his query then select which site he would like to search the query on. Like www.torrents.to has, basically just like that. I know nothing about coding, could somebody write the code for me and tell me where to put my links, directory stuff etc...?

View 2 Replies View Related

JQuery :: Performance - Moving Everything From One Div To Another

May 27, 2010

I need to move the entire contents of one div to a sibling div. At present I'm just doing (assuming the 2 divs are called 1st and 2nd):

What I need to know is if this is the quickest means (in performance terms) of doing this as I will be performing the operation regularly and on a large number of nodes and it's in an area where the UX really can't stutter ?

View 4 Replies View Related

Create Multiple Clocks On Site Based On The Client Location

Feb 9, 2009

I need to create multiple JavaScript clocks on my site based on the client location (I.e. Los Angeles, Houston, Orlando, etc). Nothing complicated... just text clocks to show the current time. With due credit to this site , I used their code as a starting point.

[Code]...

View 2 Replies View Related

JQuery :: Better Performance To Trigger Pop Up Blockers

Sep 23, 2009

Does Jquery perform better or worse than other Java library with regard to not triggering pop up blockers?

View 2 Replies View Related

JQuery :: Selector Performance - Tester ?

Jul 2, 2009

I just tested all my jQuery selectors using the jQuery Tester [url], and the results seem to "contradict" one thing I read in a performance article: that you should descend from the closest parent ID when using classes in your selector (the article says "April 09", so the latest jQuery version was already available). In my tests, using just the class selector (like span.myClass) was always fastest (sometimes twice as fast as #myDiv span.myClass), and this in all browsers I tested, not just the ones supporting getElementsByClassName. Maybe descending from the closest parent ID becomes a factor when you have a lot of elements on you page?

View 6 Replies View Related

JQuery :: Poor Performance Of XML Parsing

Apr 2, 2010

I pull XML from server using .load() and then iterate with .each() over some 3000 nodes. I use .find() to get 7 sub-nodes and store them internally (into arrays). It works, but it is disappointingly slow. On my obsolete P4 it can take 8-10 seconds during which the whole browser (FF) is completely frozen. On faster computers the processing time is shorter, but still way too long. What can I do to cut this time? I certainly need speed up of an order, two orders would be nice. Would JSON be any faster? Or should I pull text/plain in custom format and parse it in my JS code?

View 5 Replies View Related

JQuery :: Terrible Selector Performance In IE 8?

Apr 7, 2010

I have a php search page with can potentially display several hundred records. For each record, there is an icon which, when clicked, makes an ajax call. When the reply comes back, the text returned from the server script is added to a specific div and the source of the icon that the user clicked is changed (as a visual cue that that particular item was selected).

This works 100% perfect in FireFox (3.5.9), Chrome, and IE 7. However when I test it in IE 8 there is a HUGE lag between when the icon is clicked and when the div and icon are updated (usually between 10-15 seconds). By commenting out one line at a time, I've narrowed it down to the line that changes the src attribute of the icon...if I just comment that line out, the ajax call is made and the div is updated instantaneously.

[Code]...

View 5 Replies View Related

JQuery :: Performance For Different DOM Node Creation Methods?

Dec 3, 2010

Does anyone know if there is a significant performance difference between the below two methods of DOM creation in jQuery?

Method 1:
$("<div id='myId' class='one two three' style='width:100px; height:100px; z-index:1;' />").appendTo("body");

Method 2:
$("<div />").attr("id", "myId").addClass("one two three").width(100).height(100).css("z-index", 1).appendTo("body");

I imagine that when using the first method, jQuery does some string processing and eventually ends up doing the same thing as method #2. Is that correct? If so is there a significant performance cost for this? Overall I think the first method is better as far as readability goes but it would be good to also know its effect on performance.

View 2 Replies View Related

JQuery :: Map Performance - Tooltips To Show Data When NPC Or Fort Icon Is Mouseovered?

May 3, 2011

i working on web map of MMORPG gamehttp:[url].....(here is "working" version dont comment a code, its shitty i working on funkcionality,i will perform code cleaning and optimalizacion after i implement all needed functions and solve all my problems)so i have 2 problems:

1) map performance when zooming.i need drawn ~600 dots of NPCs on map and recalculate their positions on map when zoom in/out, my current solution is slow ( cleaning and appending HTML into map content) i wana know if there is faster solution how do it ?

2)i using jQuery tooltips to show data when NPC or fort icon is mouseovered , it works great only with one problem, when i zoom with tooltip opened , it loose "connecion" with fort/NPC icon and tooltip stuck on screen...

View 3 Replies View Related

Multiple Sliders - Implementing A Couple Of Coda Sliders Onto A Site

May 11, 2009

When it comes to JavaScript, I am implementing a couple of Coda sliders onto a site, and as far as I am aware, you can have two sliders on one page, but for me this isn't working.

The effect is using jQuery, and the page can be found here: [url]

The first slider works well, but the second doesn't load properly.

View 2 Replies View Related

JQuery :: .ajax() Seems To Be Too Slow For Key Events

Jun 12, 2010

I have a problem with the jQuery.ajax() function combined with a keyup event (i think key events in general). I'm binding an keyup event to an input field so that on every change the current input is send via the ajax function and receives new data from the server, displaying it in a selectbox.

when I'm typing very fast it seems that the ajax function is too slow for this and shows up old result elements. After triggering the event another time, e.g. via UP,DOWN,.. it receives and displays the correct data.

View 1 Replies View Related

JQuery :: Animation ScrollTop Is Not Slow / What To Do?

Dec 6, 2011

I have following code to have a scroll animation effect. The cod eis triggered e.g. by a click.[code]...

The problem is, that the browser (tested in FF, Chrome, IE9) just jumps to the scroll target, no effect is viewable. I googled the code in different places, everybody else seems to have no probs with it.

Any ideas what I'm missing here?

View 1 Replies View Related

JQuery :: Drag And Drop, Very Slow?

Dec 7, 2007

Please the link to see what I have done so far...[URL]... It is a day planner, where various places can be dragged on to the day planner. It works, but it seems very slow. Running firebug profile when dragging a simle place into a single slot tells me that over 35,000 calls were made.

View 7 Replies View Related

JQuery :: Ie7 Slow Searching By Class Name With 'each'?

Mar 12, 2010

I've read a lot about how slow IE7/javascript is, but I thought I'd share this test. I have a complex page with about 15 tables of class XYZ. I timed this:

[Code]...

View 4 Replies View Related

Performance Using Tables Vs Divs

Jul 14, 2010

I have some code which creates an extremely long table row, and I've been able to clean it up to a point where my performance is fairly decent. What I am trying to figure out is if its better in terms of speed to use divs as opposed to the really long table row. I didn't really find much on this topic online, so thought I'd ask out here.

View 2 Replies View Related

JQuery :: Closest And Parents Behaviour In IE Very Slow?

Sep 30, 2011

I have a table with 5000 rows. In each row I have an html element. myElementList is the list of those elements. Now I need to select all the tr's of these elements. I am using the following code.

[Code]...

This work great in FF. But when I run the same in IE 8. The browser hangs out and a popup messgae appears that propmt for to stop the script.

View 2 Replies View Related

JQuery :: Slow Response To AJAX Calls In IE7?

Jul 30, 2009

I am developing quite a complex user interface in jQuery that relies on an AJAX call to retrieve JSON.We have noticed that the code runs slow in IE7. IE8 and IE6 are acceptable. Firefox and Chrome really quick. I have traced the problem back to the AJAX call, which IE7 seems slow o process. What takes less than a second in the other browsers will take IE7 3 or 4. I have googled for an answer it seems there is some consensus that the native XHR in IE7 is slow, so it may not be a specific jQuery problem.Has anyone else experienced this? Does anyone have a solution? Please consider that this will be a public website, so the solution cannot involve altering settings on users' machines.

View 5 Replies View Related

JQuery :: Row Highlighting Slow On Large Tables?

May 26, 2011

I am pulling data from a database and putting it into a table, i'm using the following statement to add row hightlighting to make it easy to read. Everthing works fine with short tables, but for larger tables the highlighting lags severely, aside from manually adding the mouseover/mouseout directly in the output, is there any way to make this faster?

$("#totalcalldata tr").mouseover(function(){$(this).addClass("rowHilight");}).mouseout(function(){$(this).removeClass("rowHilight");});

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved