GithubHelp home page GithubHelp logo

fienen / com.learndotcms.plugins.resourceloader Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 224 KB

Loads a set of files to an HTML page based on a library ID. Supports JavaScript, CSS, or VTL. Supports shared hosts by setting the host's ID in the plugin's plugin.properties file. Has built in support for all Google Hosted Libraries without needing to upload any files to your server. Also enables you to use the BoxJS/CSS proxy CDN service for minifying and combining your files. Use the file's Sort Order field to control loading priority.

Home Page: http://learndotcms.com/2012/10/the-resource-loader-plugin/

License: Other

Java 100.00%

com.learndotcms.plugins.resourceloader's People

Contributors

fienen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

com.learndotcms.plugins.resourceloader's Issues

Create a dependency loader

For instance, if someone does #loadResource('jquery-ui'), we want to make sure jQuery is loaded too, first.

Update default library versions

Need to make sure all libraries are up to date, e.g. jQuery should now reflect version 1.9. Might as well check them all.

Add option to allow customization of protocol relative URIs

Need to provide an option, let's say $forceSsl, that would take options like: none, always, relative. The behavior would be for external/CDN links and would do the following:

  • none: Nothing, process the link as entered (default)
  • always: Do a regex replace on links from http: to https:
  • relative: Strip http(s)?: from links, starting them with just //

Add CDN to local failover

If the user defaults to loading an asset from a CDN or external location, need it to fail over to the local copy of the file in the event the CDN is unreachable for some reason.

Improve resource URI

Need to change the way I get the resource URI so that at least on normal output, it uses the human-readable path instead of the dotAsset path.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.