Skip to content

pshihn/worker-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

worker-script

This is a WIP experiemnt to create a custom element that extends the HTMLScriptElement. Script specified by this element will execute in a web worker.

<script is="worker-script" type="worker">
  function sum(a, b) {
    return a + b;
  }
  console.log('Sum = ', sum(3, 4));
</script>

or

<script type="worker" is="worker-script" src="./multiply.js"></script>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published