#ReactJS component to fetch image resources via web workers

  • react-worker-image is a React component for loading images via a web worker.
  • Thereby not blocking the main thread and speeding up page load time.
  • exports one react component which takes as a prop, and an optional prop of , and which are applied to the img tag.
  • The above props are applied to the img tag.
  • Observe the page Load time at the bottom right corner in both cases.

react-worker-image – React component to fetch image resources via web workers

We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.

React component to fetch image resources via web workers

react-worker-image is a React component for loading images via a web worker. Thereby not blocking the main thread and speeding up page load time.

Using npm

which are applied to the img tag.

usage in code

The above props are applied to the img tag.

Found a bug file them here.

Observe the page Load time at the bottom right corner in both cases.

The first is via a webworker and the second is the regular get.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

GitHub