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 6729061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:14:38+00:00 2026-05-26T10:14:38+00:00

I’m developing a music player based on jQuery, which has a long list of

  • 0

I’m developing a music player based on jQuery, which has a long list of items in the main section (unordered list, with <div> elements in each <li>, for info about artist, album and title).

You can access a temporary public version of it here:
http://music.sixteennet.co.uk/?anonymous

(All songs are dud links on the public version, so don’t bother playing anything :P)

First, a quick description of what exactly this thing is:

To the left is a sidebar, displaying the list of songs coming up. The user selects songs in the main list (click, shift-click, ctrl-click, you know the drill) after searching/clicking artists, and adds them to the playlist to the left, either by hitting or dragging and dropping. I’ve got all this working (this question isn’t regarding how to build a Javascript user interface).

The problem: $(window).mousemove(), .mouseup() and .mousedown() contain functions to bring into view a box, with height in pixels of (16 * number of selected songs in main list) [each <li> is 16px high]. When the mouse is moved, this box moves with it, until when the mouse is over the playlist, the playlist changes colour and if the user decides to mouseup() (un-click), the selected songs are added to the playlist.

The only thing is, when the mouse is moving with the selected songs box currently visible, in Google Chrome the box’s movement is incredibly laggy but only when the mouse is over the main songs list (however, CPU usage is stuck at 100% throughout the time the box is displayed). In Firefox 6 and IE 9, the movement is smooth throughout, and CPU usage is not 100% (even on an Athlon 64 3500+). This test has been repeated (by me) on two PCs, one running Windows 7 and the other running Ubuntu Linux.

I very much suspect it’s a bug with Google Chrome, but if anyone has the good will to go through the source code and tell me what the problem is (if there is one)…you’re God to me 🙂

EDIT: the reason I said Chrome/V8 is because Safari, using the same rendering engine (WebKit) does not have this issue (although it is not as smooth as Firefox/IE9/Opera)

  • 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-26T10:14:39+00:00Added an answer on May 26, 2026 at 10:14 am

    I’m going to answer my own question, as I’ve found a solution:

    Running this jQuery function on the box fixed the lag issue:

    $.fn.disableSelection = function() {
      return this.each(function() {
        $(this).attr('unselectable', 'on')
        .css({
          '-moz-user-select':'none',
          '-webkit-user-select':'none',
          'user-select':'none',
          '::selection':'none',
        })
        .each(function() {
          this.onselectstart = function() { return false; };
        });
      });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

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.