Coder Social home page Coder Social logo

Add WebWorker to run JS about evalbox HOT 5 OPEN

Ridermansb avatar Ridermansb commented on July 17, 2024
Add WebWorker to run JS

from evalbox.

Comments (5)

Ridermansb avatar Ridermansb commented on July 17, 2024 1

Hi @ypahalajani .

This project is for running JS with iframe ..

This project is change the way that javascript code is evaluated (instead use iframe, use WebWorker)

from evalbox.

Ridermansb avatar Ridermansb commented on July 17, 2024 1

To be honest, I don't remember.

Just remove this condition, I think this was necessary just for iFrame sandbox. But with web worker this is not longer needed

from evalbox.

ypahalajani avatar ypahalajani commented on July 17, 2024

@Ridermansb I am up for this issue. Could you please explain more about the use case of web workers in this project - Like how you want to use the web worker? What for?

I read about the web workers and what are they meant for. I need to understand - what background task do you need to run on a separate thread that does not interrupt the UI thread.

from evalbox.

ypahalajani avatar ypahalajani commented on July 17, 2024

Hi @Ridermansb,

The e.origin checking condition at this line number is preventing the output to be displayed on UI in my local development setup. I am unable to understand the reason for this condition.

from evalbox.

ypahalajani avatar ypahalajani commented on July 17, 2024

@Ridermansb There is one problem that I am facing - the dynamic imports in case of worker files.

Currently, the scope of importing an external js file is quite experimental and limited. See this.

However, I tried installing worker-plugin, and as I moved further, I got to know that this plugin requires webpack v4.
Should I update the webpack version?

Let me know your thoughts.

from evalbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.