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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:24:56+00:00 2026-06-11T02:24:56+00:00

I am using the Piety plugin on a website that displays leaderboard profiles. Each

  • 0

I am using the Piety plugin on a website that displays leaderboard profiles.
Each profile contains a different amount of elements to which Piety is applied and I have found that $(document).ready is triggered before all these elements have loaded.

My solution so far has been to move Piety from $(document).ready to $(window).load – Which works great for most of the profiles. However, the people at the top of the leaderboard have extremely large profiles, which creates quite a wait before $(window).load will kick in and work through all of the Piety elements.

I am wondering if there would be any performance issues if I was to call each pie individually as they are loaded, instead of waiting for $(window).load and letting jQuery do it all in one go.

Something like..

From:

$(window).load(function(){
   $("span.pie").peity("pie", { ... })
}); 

To:

function loadPie(id){
    $("#"+id).peity("pie", { ... })
}

..and then loadPie after each element.

  • 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-11T02:24:58+00:00Added an answer on June 11, 2026 at 2:24 am

    If the profiles are loaded asynchronously after DOM ready, then yes, initializing peity on each one after they are loaded makes sense. $(window).load() waits until everything else on the page (profile related or not) is completely loaded.

    One thing to consider is the resources piety requires for each instance. Depending on how many profiles / pie charts you have, it may be faster to call them all at once after the last profile is loaded (but before window.load). I will try and update this with a jsperf in a bit… headed to work now 🙂

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

Sidebar

Related Questions

Using CRM 4, I have an entity form that contains a tab with an
In a xml, I am having LinearLayout . Inside that I am using an
We are using this excellent plugin for some small sparkline charts. Issue I have
Hi recently I have started to develop a website which uses a few basic
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I got a JLabel Scoresp1 which I want to change using Scoresp1.setText(mijnScore + );
Using SSRS 2008 R2 I have a background process that dynamically generates RDL for
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
Using a populated Table Type as the source for a TSQL-Merge. I want to

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.