Extension did not seem to be loaded
On https://feather.wiki, opening a page in a new tab does not seem to show the search extension.
The search extension should be shown.
Steps to Reproduce
- Open https://feather.wiki or https://feather.wiki/?page=faqs, for example
- Open another page in a new tab using the sidebar links (until reloaded)
- Search extension does not appear in that tab (no console errors)
Screen recording: https://cloud.earne.link/s/qafX25YjgwaYqgo
- I am using this build: Dove
- I am using this version: 1.3.0
- I am using this browser: Firefox 101.0.1 (MacOS 12.4)
That's very strange, thanks for reporting it! It appears that refreshing the tab does load the extension, but it's confusing why it's behaving this way at all... Maybe Firefox isn't loading the whole HTML page again? Very odd.
I'll see if I can figure out what's going on, but I'm not confident that I'll be successful.
I had a similar issue while working on an extension for #39. Sometimes, after saving Custom JS and refreshing, the code just didn't run. No errors in the console. Refreshing fixed the issue. I only had one tab of that FeatherWiki open, but I did have a different FeatherWiki open at the same time. Both FeatherWikis are being hosted by TiddlyHost.
One reason you might be experiencing this problem @pipythonmc is that the
render event in Choo does not trigger when the page first loads. You'll need to add a
DOMCONTENTLOADED emitter event as well. Check out the setup on the Search extension to see if that helps: https://codeberg.org/Alamantus/FeatherWiki/src/branch/main/extensions/search.js#L28
The issue of extensions not loading when opening a link in a new tab on Firefox is still a complete mystery to me though.
Hi @earnestma, all of the official extensions from the Feather Wiki site have been updated with a more reliable loading process, and in my testing, the issue of Firefox not loading extensions when opening in a new tab is no longer an issue!
Please let me know if you still experience this problem after updating your extensions—I will re-open the issue if necessary.
Deleting a branch is permanent. It CANNOT be undone. Continue?