Skip to content

Seven-Y-Q-Guo/scriptjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[build-your-own] scriptjs

Inspired from https://github.com/ded/script.js

Exhaustive list of ways to use $script.js

// execute finally
$script(['foo.js', 'bar.js', 'test.js'], 'bundle')
$script.ready('bundle', function() {
  // foo.js & bar.js & test.js are ready
})

// execute accordingly
$script('foo.js', 'foo')
$script('bar.js', 'bar')
$script
  .ready('foo', function() {
    // foo.js is ready
  })
  .ready('bar', function() {
    // bar.js is ready
  })

About

[build-your-own] scriptjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published