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

  • SEARCH
  • Home
  • 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 9001327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:25:18+00:00 2026-06-16T00:25:18+00:00

I’ve been investigating some performance issues with scrolling my website on iPad Safari. We

  • 0

I’ve been investigating some performance issues with scrolling my website on iPad Safari. We have some pages which are large table elements with up to 500 rows; the performance impact definitely seems related to the number of rows in the table (and, on pages without such tables, scrolling performance seems fine). Desktop browsers are perfectly fine.

You can try this out at the following link. NOTE: to repro, make sure to change the default of 25/page to 500/page.
http://www.cellartracker.com/list.asp?table=Notes&iUserOverride=0&T=1000

After doing quite a bit of debugging, I’ve found that if I remove any ‘touchstart’ events I’ve bound, scrolling performance is normal (and super-fast, as expected). I have a few $(document).on('touchstart', '<selector>', function ()...) events configured to assist with making some hover functionality accessible to touch devices. Currently, I bind to $(document) for two reasons:

  1. There can be a lot of elements that match the selector, so traditionally the performance of a single delegated event handler is better than 500+ handlers attached to each element (I just fixed some perf issues related to this on IE8).
  2. Some of the affected elements are loaded via AJAX, so those wouldn’t automatically get the handler if I bound to the individual elements.

OK, great–I’ve found the cause–but I don’t know why this is a problem only on pages with large tables and how to work around it. For devices with BOTH touch and keyboard/mouse, I want each input mechanism to act consistently (so the if (touch) bind('click') else bind('mouseenter') approach isn’t what I’m looking for). Plus, I’m also looking at implementing the Fast Buttons approach for some elements, which would likely necessitate binding to $(document) as that’s where the corresponding click handlers currently are bound.

So…any ideas on how to improve scrolling perf on these pages while still binding touchstart to $(document)? The HTML is pretty fixed at this point, but if there are simple tweaks to the DOM that would have a big impact I’m open to it.

  • 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-06-16T00:25:19+00:00Added an answer on June 16, 2026 at 12:25 am

    Well, after putting this aside for a few days to work on something else, I came back to find the performance has mysteriously improved significantly! Tracing back the other changes that were made, I found the root of the performance issue: jQuery UI 1.8.20. I just upgraded to jQuery UI 1.9.2 to fix some other issues, and now I am no longer seeing the horrible scroll lag/perf issues.

    Now, I still do see a slight perf degradation from having touchstart bound to $(document), but now it’s so minor it’s fairly imperceptible. If anyone has other guidance on how to better optimize the original question, though, I’d still love to hear it!

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have an autohotkey script which looks up a word in a bilingual dictionary
I have an array which has BIG numbers and small numbers in it. I
I have a text area in my form which accepts all possible characters from
I have been unable to fix a problem with Java Unicode and encoding. The
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.