Skip to content

reLoading Artoo and page ready #278

@dataSQL

Description

@dataSQL

Hello, please:

I am completing a script to eventually create a bookmarklet. Artoo.js requires reloading / injecting many times as each new URL loads.

  1. How do I script Artoo.js to re-load with each page functions?
  2. What READY function works with Artoo.js,
// go to URL
window.location.href = "https://medialab.github.io/artoo/"
// runs after all assets (whole page) loaded
$(window).load(function() {
    alert("Window Loaded");
    console.log("ready!");
});

or

// go to URL
window.location.href = "https://medialab.github.io/artoo/"	
// runs when DOM is ready for interaction
$(document).ready(function() {
    alert("Window Loaded");
    console.log("ready!");
});

Any suggestions greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions