문제

I have an ActionScript function exposed by ExternalInterface (ExternalInterface.addCallback).

Since the unique parameter of the function is a really big string (~1115468 chars), I'm experiencing some "blocking" on the flash component.

Looking to Chrome's JS profiler I found that this call is the guilty. It's possible to dispatch a web worker to do this job?

I found vkthread (http://www.eslinstructor.net/vkthread/) that promise you can call functions with contexts, but trying to call my heavy function I've received "TypeError: Converting circular structure to JSON".

도움이 되었습니까?

해결책

author of vkThread plugin already answered this question here:

https://github.com/vkiryukhin/vkthread/issues/1

Briefly: context object has a property, which refers to the object itself. That's why it cannot be stringified with JSON.stringify(...), which is used internally in this plugin.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top