Simple Javascript function works fine, but not in Canvas on Firefox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2020
03:56 PM
EDIT - the fix appears to be to delay Javascript for 1 second on Safari and Firefox. This now seems to work great with this delay and was definitely the cause.
Hi guys, we're using a custom javascript to make page tabs, and it works perfectly fine in Chrome.
Unfortunately it doesn't seem to function in Firefox or Safari while in Canvas - so I'm not sure why that would be different?
I know Canvas can be a little hostile to some html but this appears to work fine in a jsfiddle (obviously simplified) in Firefox and Safari - it's only once in Canvas that it's not working, so it's clearly Canvas causing the error.
Note that Jquery is being called - should I be manually calling in JQuery in the custom javascript file?
Any help is appreciated!