mjs
mjs

Reputation: 22379

Inserting executable scripts, large libraries. What is most efficient approach?

I'd like to insert a couple of large libraries in arbitrary sites, or on localhost, do some stuff, and get a result out.

What is the most efficient way to do this? Inserting a large text node is probably not the most optimal solution.

Also, is it possible to be in offline mode for local server use? For instance, to have UI4J wrap less.js and render stuff.

Or does it have to be online and resources served through localhost?

Upvotes: 0

Views: 105

Answers (1)

user452425
user452425

Reputation:

You could load javascript from both local path and from cdn. Its not required to run local web server to load javascript. Just put the resource (css, image, js) to same folder/package of html file.

I also add sample code that execute less.js api from Java. You could load jess.js from both cdn or local disk.

Upvotes: 1

Related Questions