Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • does fred or george rely on accessing anything in the DOM? Commented Dec 19, 2016 at 2:07
  • any errors in the developer tools console Commented Dec 19, 2016 at 2:18
  • Derp, I'm not sure of exactly what you mean by that. Commented Dec 19, 2016 at 3:09
  • Also, no errors other than "The character encoding of the HTML document was not declared. " and "Reference Error: Fred is not defined" Commented Dec 19, 2016 at 3:13
  • My guess is because loading in a JavaScript file takes time, you will want to use the functions only when that file has completely loaded. Try running this in a setTimeout of a few seconds and see if that's what's causing the issue. Commented Dec 19, 2016 at 3:36