WordPress.org

Ready to get started?Download WordPress

Forums

how can i load dashboard widget content after the dashboard has loaded (2 posts)

  1. agentc0re
    Member
    Posted 4 years ago #

    I've created my first plugin. It will go out, get all your adsense data and display it in a dashboard widget. However, because google doesn't offer the adsense API to anyone under 100,000 monthly views, i have to parse all of the HTML.

    So, when you refresh the dashboard it sits there until all the information has been gathered by that widget and then the page loads.

    Is there away I can make it so the dashboard isn't waiting on this widget and once it's gathered all it's information, it will then display it in it's widget?

  2. agentc0re
    Member
    Posted 4 years ago #

    I found my answer. My answer was using Ajax with the desktop widget.
    http://codex.wordpress.org/AJAX_in_Plugins

    This worked wonderfully. Thanks Sivil in #wordpress on freenode!

Topic Closed

This topic has been closed to new replies.

About this Topic