
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@okiba/resource-loader
Advanced tools
Manages loading of resources trough fetch to boost caching. Transparently relies on a WebWorker if possible to load on a separate thread.
Okiba is transpiled for browser usage only. If you use it in production, don't forget to transpile it with your bundler.
__
import ResourceLoader from '@okiba/resource-loader'
const resLoader = new ResourceLoader()
// if `window.Worker` is available
// `fetch` happens on a separate thread!
urls.forEach(
url => resLoader.load(url)
.then(console.log('Loaded! đŚ'))
.catch(console.log('Fail! âšď¸'))
)
You can grab it as an npm package
npm i --save @okiba/resource-loader
Or use it in the browser
<!-- Minified -->
<script src="https://unpkg.com/@okiba/resource-loader/dist/index.min.js"></script>
<!-- Full -->
<script src="https://unpkg.com/@okiba/resource-loader/dist/index.js"></script>
Initiates loading of a resource at a given URL
url: StringResource URL
Promise A promise which will be resolved if the resource
is loaded and rejected if not.
FAQs
Class to fetch resources, prefers a separate thread
We found that @okiba/resource-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.