![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A small library to load assets dinamically. Use it when you need to preload your assets and add it dinamically to the DOM. The supported assets are:
It's less than 4Kb minified and less than 1Kb Gziped.
The library loads and injects SVG files inline with support for fallback to a png file in case the browser doesn't support SVG. To use it, you've got to pass the argument hasFallback: true
.
You can also load a SVG as an image, using the <img>
tag, just pass the SVG with the type image, instead of SVG. Note that this won't check for SVG support and won't provide any fallback.
Add the script to your page or use browserify and require it. We recomend using npm as your packge manager and browserify as your module loader.
//LoadAssets Object
var loadAssets = new LoadAssets([{
type: 'style',
filename: 'test/assets/css/style.css',
order: 1
},{
type: 'js',
filename: 'test/assets/js/test.js',
order: 2
},{
type: 'svg',
filename: 'test/assets/images/advance',
target: '.advance',
hasFallback: true
},{
type: 'image',
filename: 'test/assets/images/javascript.png'
}], function(object) {
console.info('Count: '+loadAssets.count, object);
// This is already cached
document.querySelector('.javascript')
.insertAdjacentHTML('beforeend', '<img src="test/assets/images/javascript.png">')
});
// Inject the assets
loadAssets.startLoad();
LoadAssets is licensed under the MIT license. (http://opensource.org/licenses/MIT)
FAQs
A library to load assets dinamically.
The npm package loadassets receives a total of 2 weekly downloads. As such, loadassets popularity was classified as not popular.
We found that loadassets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.