I want to build a script that builds up the data needed for the application in the background.
I intend to use a web-worker but a lot of the activity use the graph API with JS SDK as it’s source and it seems like that ain’t working in a webworker.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Yes you can use Facebook’s JS SDK inside of Web Workers. Web Workers can use XHR just like regular JavaScript.
In fact, Web Workers were designed for tasks like this — offloading data access and other long running requests from the main “UI thread” in favor of background processing.