Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reLoading Artoo and page ready #278

Open
dataSQL opened this issue Oct 14, 2017 · 0 comments
Open

reLoading Artoo and page ready #278

dataSQL opened this issue Oct 14, 2017 · 0 comments

Comments

@dataSQL
Copy link

dataSQL commented Oct 14, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant