Closed rajarshikhatua100 closed 5 months ago
Hi @rajarshikhatua100 !
Thanks for the heads up. Our favicon API struggles with web apps because the HTML sent is always empty and doesn't contain any icon links. It also struggles with anything Google because their services automatically redirects to their login page.
I'll manually add those icons until I can find a fix !
this project -https://github.com/conceptualspace/yet-another-speed-dial, does fine with web apps like graphite or rive, it does it in a weird way (by opening the link in a background tab) but also this project - https://github.com/joelshepherd/tabliss works fine and it has web apps too. but these two also struggles with google websites(but those can be manually added easily , somehow chrome's default homepage does shows the icons)
I didn't think of using the Open Graph Protocol before, it should work for a few more websites.
We are somewhat already doing what YASD is doing in our API, the difference is that we only check the HTML
instead of fully loading the website. Might be something worth investigating ! (Might be expensive on the CPU though 🤔)I am already seeing major performance issues, I had almost 70 quick links (that's why maybe). WASM is the answer for performance perhaps but that a debate for another day. but what I have seen is the app tries to fetch the logo every time, can we store the logo in local cache and give a option in setting to fetch if needed
In this case WASM would not work because it is only useful if there is a lot of computation and/or few DOM manipulation, which is the opposite of adding simple <li>
to a page !
I don't know who wrote this code (it's me 😢), but each links are added to the page synchronously. This can be improved and icons should in theory appear faster or all at the same time, because they would all be ready before the first useful frame.
As for the cache, our API https://api.bonjourr.fr/favicon/blob/<your-url>
has a 1 year cache control. Some other URLs might have a smaller or no cache, and your favicons will refresh themselves every time...
We are not going to implement a stronger cache system because caching is hard and time is limited ! Finding a provider with a very long cache control would 99% fix the issue !
I am using the latest version. Here are the links of the websites-
and also some google website like Web store,play store,photos,keep,Gemini etc. shows the google icon
https://github.com/victrme/Bonjourr/assets/77912617/ed755f2b-c16d-47a6-bfbd-9757ce264a14