Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 463113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:08:34+00:00 2026-05-12T23:08:34+00:00

I am seeing very poor page set-up time in IE using jeditable. The page

  • 0

I am seeing very poor page set-up time in IE using jeditable.

The page has a table in which each row has 13 span elements to which jeditable is applied as follows:

$(document).ready(function() { 
    $('#entry_pl span.ples').editable('my_xhr.php', {
            placeholder: '<span class="placeholder">unset</span>',
            indicator: '<img src="indicator.gif" class="indi">',
            data: function(value, settings) {
                return  $('<span />').html(value).text();
            }
        });
});

Functionality is great — everything works. But in IE 6…8 the above code takes over half a second per table row. So page set-up delay is terrible already for a 10-row table. User’s won’t be happy with that. Set-up delay in WebKit and Firefox is negligible.

Any thoughts or suggestions?

I haven’t started reviewing or profiling jeditable code for performance.

And I’m thinking to maybe call .jeditable() on an element only when it is clicked rather than on all elements in $(document).ready().

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:08:35+00:00Added an answer on May 12, 2026 at 11:08 pm

    Che, I did a bunch of tests and profiling to determine which bit of code was taking the time. jeditable was not the only culprit but it took the lion’s share. I’m really curious why it’s working fast for you and not me.

    One possibility is that I run IE on XP in a VirtualBox VM on my iMac. It’s not a fast set-up but that’s good because some of my clients use old, slow or overloaded computers and I want the application to work well for them too.

    Anyway, the good news is that I found a simple and effective solution which I can share. I got rid of all the .jeditable() calls in $(document).ready(). I gave each editable span element in the table an attribute something like this: onclick=”ed(this)”. And you can imagine what ed() looks like:

    function ed(elem) {
        $elem = $(elem);
        ...
        $elem
            .removeAttr('onclick')
            .editable('action_script.php', {
                ...
                }
            })
            .click();
    }
    

    Now let’s think about this. This is arguably the right approach anyway because nearly all of the editable elements in the table will not be edited before the page reloads (at least, that’s true in my case). Setting up all those elements as editable just in case they might be clicked is rather inefficient relative to making them editable only if they are clicked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are seeing very high memory usage in .NET web applications which use XmlDocument.
I'm seeing some very strange sorting behaviour using CaseInsensitiveComparer.DefaultInvariant. Words that start with a
I'm seeing something very very strange happening in a Flex app I'm maintaining. I've
After seeing the cool new reputation tab on the stackoverflow user page, I was
I'm seeing strange errors when my C++ code has min() or max() calls. I'm
I am seeing very, VERY strange behavior when I run certain reports: >> p
Our site has some very complicated form controls that are submitted and then show
I'm seeing a very strange problem when overriding an abstract method and trying to
Seeing as Java doesn't have nullable types, nor does it have a TryParse(), how
Seeing this: http://www.suckless.org/wiki.html . A wiki based on Mercurial. Are there any other non-code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.