/    Sign up×
Community /Pin to ProfileBookmark

Asynchronous functions or ?

I am creating a plugin that will be embedded in a web page as an object (application MIME type). This plugin will handle a type of peer to peer connection for transferring data back and forth between the peers. On the page will be different controls for executing functions within the plugin… one being the creation of a connection between the two peers. My problem is that when I am creating the connection you can’t click on anything… you can’t change browser tabs… nothing… it is almost like the browser has frozen. I have tried a number of asynchronous methods like using callbacks and setTimout(function(),0) but regardless of what I try, it always experiences this freeze, does anybody have any suggestions on what I might do/try to solve this problem?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@rnd_meFeb 20.2013 — you can use the chrome profiler to point the blame, but im guess it's part of the java/flash object that does it.

if that's the case, there's little you can do about it in javascript.
Copy linkTweet thisAlerts:
@RyneauxauthorFeb 20.2013 — Thanks rnd me, that pretty much confirms my suspicions as well...
×

Success!

Help @Ryneaux spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...