All Projects → dsheiko → micro-requirejs

dsheiko / micro-requirejs

Licence: other
⛔️ [DEPRECATED] Tiny asynchronous dependency loader, that does not require modification of dependent scripts

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to micro-requirejs

generator-oraclejet
DEPRECATED Yeoman generator for creating Web and Mobile-hybrid Oracle JET based applications
Stars: ✭ 13 (-40.91%)
Mutual labels:  obsolete
load-script2
Dynamic script loading for modern browsers
Stars: ✭ 46 (+109.09%)
Mutual labels:  script-loader
ionic-3D-card-carousel
DEPRECATED Sample project that shows an experimental 3D card carousel in Ionic.
Stars: ✭ 29 (+31.82%)
Mutual labels:  obsolete
microsoft-teams-faqplusplus-app
DEPRECATED - This repository contains a deprecated version of the FAQ Plus app template. Please see the README file for more details and a link to the new repository
Stars: ✭ 47 (+113.64%)
Mutual labels:  obsolete
mailalerts
Sends e-mail notifications to customers and merchants in PrestaShop 1.6.
Stars: ✭ 23 (+4.55%)
Mutual labels:  obsolete
try-compose
Sample project to try Jetpack Compose early developer preview here and now!
Stars: ✭ 28 (+27.27%)
Mutual labels:  obsolete
Sphero Ios Sdk
🚫 DEPRECATED: Sphero™ is the amazing robotic ball ( sphero.com ) created by Orbotix, this is the repository for the iOS SDK for Sphero™. Visit dev site for more information:
Stars: ✭ 232 (+954.55%)
Mutual labels:  obsolete
async
A lightweight and high performance async CSS and script loader for frontend optimization.
Stars: ✭ 17 (-22.73%)
Mutual labels:  script-loader
Sphero-Win-SDK
🚫 DEPRECATED: Sphero SDK for Win 8.1+ using RFCOMM
Stars: ✭ 36 (+63.64%)
Mutual labels:  obsolete
lazybones-aem-templates
🚨[DEPRECATED] Lazybones templates for Adobe Experience Manager🚨
Stars: ✭ 68 (+209.09%)
Mutual labels:  obsolete
php.rb
[Retired] PHP.rb translates Ruby code into PHP code.
Stars: ✭ 86 (+290.91%)
Mutual labels:  obsolete
touchclick
Provides immediate visual feedback on touch for native-feeling web apps
Stars: ✭ 42 (+90.91%)
Mutual labels:  obsolete
jest-badges-readme
Creates a group of coverage badges from Jest into your README
Stars: ✭ 30 (+36.36%)
Mutual labels:  obsolete
bitcache
[Retired] Distributed, content-addressable storage system.
Stars: ✭ 30 (+36.36%)
Mutual labels:  obsolete
rok4
ROK4 est une suite d'outils open source développée par l'IGN France permettant la diffusion de données raster et vecteur en WMS, WMTS ou TMS. DEPRECATED ! Projet maintenu ici : https://github.com/rok4/documentation
Stars: ✭ 18 (-18.18%)
Mutual labels:  obsolete
prestafony-project
Some resources to help you migrate PrestaShop to Symfony 3
Stars: ✭ 12 (-45.45%)
Mutual labels:  obsolete
openbsc
Historical archive of ancient, unsupported old OpenBSC + OsmoNITB; Use OsmoBSC and OsmoMSC now! Mirrored from https://gitea.osmocom.org/cellular-infrastructure/openbsc
Stars: ✭ 52 (+136.36%)
Mutual labels:  obsolete
crm114.rb
[Retired] Ruby interface to the CRM114 Controllable Regex Mutilator.
Stars: ✭ 29 (+31.82%)
Mutual labels:  obsolete
Azure-AppServices-Diagnostics
Azure App Service Diagnostics provides developers ability to write various diagnostics features which helps customers to diagnose and troubleshoot their applications hosted on app services.
Stars: ✭ 42 (+90.91%)
Mutual labels:  obsolete
roweb
⛔ [DEPRECATED] Active at https://github.com/ropensci/roweb2
Stars: ✭ 18 (-18.18%)
Mutual labels:  obsolete

Micro RequireJS v2.0

No Maintenance Intended

WARNING - THIS PROJECT IS NO LONGER MAINTAINED!!!

NPM

Build Status Bower version

Extremely simple and light-weight (<1KB gzipped) asynchronous resource (JavaScript and CSS) loader

If you need support of legacy (like ancient) browsers, go with micro-requirejs v1.x

How to use

<!DOCTYPE html>
<html>
<body>
...
<script src="./rjs.js"></script>
<script type="text/javascript">
rjs([ 
    "https://code.jquery.com/jquery-3.3.1.slim.min.js",
    "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"     
    ])
    .then(() => {
        console.log( "jQuery available, Bootstrap CSS available." );
        return rjs("https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js")
            .then(() => {
                console.log( "Bootstrap JS available." );
            });
    })
    .catch(( err ) => {
        console.error( "Something went wrong", err );
    });
</script>
</body>
</html>

Async function style

async function main() {

    try {
        await rjs([ 
            "https://code.jquery.com/jquery-3.3.1.slim.min.js",
            "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"            
        ]);
        await rjs( "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" );
        console.log( "jQuery and Bootstrap loaded" );
    } catch ( err ) {
        console.error( err );
    }
}

main();

Injecting extra attributes

// Single source
 await rjs( "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js", {
            integrity: "sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy",
            crossorigin: "anonymous"
        });

// Multiple sources
 await rjs([ 
            ["https://code.jquery.com/jquery-3.3.1.slim.min.js", {
                integrity: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo",
                crossorigin: "anonymous"
            }],
            "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"            
        ]);        

You can run tests like that:

npm test

Analytics

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].