Skip to content

Cookbook: load

Eugene Lazutkin edited this page Nov 26, 2019 · 3 revisions

Just including io.load activates it. See How to include for more details. See load for the full documentation.

Include a JavaScript file

io.load('/url').then(function () {
  console.log('Got it!');
});

io.load('/url', {q: 1}).then(function () {
  console.log('Got it!');
});

io.load('/url', {q: 2});
Clone this wiki locally