Get started with seajs CDN

MIT licensed

Asynchronous JS/CSS loader: Seasjs manages web app dependencies.

Tags:
  • loader
  • module
  • CMD
  • browser

Stable version

Copied!

How to start using seajs CDN


// Define the configuration object
const config = {
  baseURL: '//cdn.cdnhub.io/seajs/3.0.3/',
  paths: {
    'app': 'path/to/your/app',
    'jquery': 'https://code.jquery.com/jquery-3.6.0.min.js' // Optional: include jQuery as a dependency
  }
};

// Initialize SeasJS with the configuration
seajs.config(config);

// Load the main module
seajs.use('app/main');
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions