Skip to content
Make sure your resources are properly trollied
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist Consistency goes a long way
lib
.gitignore
.jshintrc
Gruntfile.js
README.md
bower.json
license.txt
package.json

README.md

trolley.js

Make sure your resources are properly trollied

The plan

  • load scripts asynchronously
  • utilise localStorage for caching if available
  • preserve loading order
  • support synchronous loading
  • support "immediate" scripts (they execute immediately as loaded irrespective of the order)
  • provide callback for script loaded
  • provide callback for script loaded that fires if script has already been loaded before
  • support for CSS
  • evict from localStorage based on version - partial make sure it evicts non versioned as well
  • evict from localStorage based on insertion time when no version
  • provide error callback
  • allow people to add their own loaders based on content type
  • documentation
  • tests
  • have lots of tea
Something went wrong with that request. Please try again.