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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:22:26+00:00 2026-06-01T04:22:26+00:00

I’m debugging some performance issues in IE8 with RaphaelJS. We’re building graphs from ~1000

  • 0

I’m debugging some performance issues in IE8 with RaphaelJS. We’re building graphs from ~1000 elements and text nodes in raphael and in particular one graph is causing us problems when it’s rendering. In IE9 it takes 2-7 seconds depending on the machine to render, and in IE8 1 minute plus.

You can see the website in question here. It’s the 3rd graph (click it).

Essentially we create elements for each point of data and draw them on the raphael canvas.

I’ve used the IE Developer Tools profiler and determined that it’s the setFillAndStroke() function called from both attr() and text() when we change the fill, stroke, style and a few other settings of elements. The getBoundingRect() function is the culprit in setFillAndStroke().

Here is a screenshot of the profiler output

In my research I’ve come across people having issues with IE8, attr() and text(), e.g.,

So a few questions:

  1. Can you set a ‘default’ fill and stroke for Raphael elements so that they are created with that fill and stroke? This should remove the call to getClientBoundingRect(). I’ve tried looking for such a function in the docs but no luck.
  2. Is this something we can solve without changing the look and feel of the graphs?
  3. If this is something we can do just through the code, is it possible to do so without modifying RaphaelJS?
  4. Any other ideas?

Someone seemed to have a similar problem in older versions of Raphael, apparently fixed in 2.0.0 but we’re using version 2.0.2 (tested to also have the same issue in 2.1.0).

Here is the issue report on github.

  • 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-01T04:22:27+00:00Added an answer on June 1, 2026 at 4:22 am

    So thanks to Eliran Malka’s advice I was going ahead with changing from using attr() to adding classes and using CSS, when I found that we had a bug causing a total of 178 labels to be drawn instead of 8 (1 per 22~ intervals), all but the main 8 of them outside the dimensions of the ‘paper’.

    Having a suspicion that getBoundingRect() was probably choking up when the elements were off screen, I found the source of the bug and fixed it, drawing only the expected 8, and all of them on canvas. This reduced load time from 1 minute plus to 8.8 seconds.

    So the cause of the dramatic slowdown was using text() to create elements off screen, and then changing their attributes via attr().

    While 8.8 seconds is still not great, it’s about an order of magnitude better than 1 minute and a bit (72~ seconds to be precise) so I’m going to call this ‘answered’ while we source the rest of the problems.

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a text area in my form which accepts all possible characters from
I have a bunch of posts stored in text files formatted in yaml/textile (from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.