clive-io / clive.io

Personal website! Also a testing ground for random frontend webdev tech.
http://clive.io
0 stars 0 forks source link

Use RequireJS for simulations? #21

Closed cchan closed 7 years ago

cchan commented 8 years ago

hmm instead of that sketchy javascript-load-script-element

  script = $.extend document.createElement('script'),
    type: 'text/javascript'
    async: true
    defer: true
    onload: =>
      $('canvas#splash').css
        opacity: 1
      window[animations[name]]()
    src: animations[name] + '.js'
  document.getElementsByTagName('head')[0].appendChild(script)