deep-chat icon indicating copy to clipboard operation
deep-chat copied to clipboard

Disabling loading of google webfont

Open matthiasamberg opened this issue 1 year ago • 4 comments

Hi there

not a bug, but how can I disable the loading of the Google Web Font Inter? I did change the fonts of the main component, and it seems, that Inter is not used anymore. However the googlefont css is still injected into the head and the call to google is still made. For privacy reasons I'd prefer if that call wouldn't happen. Is there a way for me to disable this?

Thanks and TIA!

matthiasamberg avatar Feb 27 '24 07:02 matthiasamberg

That's a really good question, let me think about this one.

OvidijusParsiunas avatar Feb 27 '24 14:02 OvidijusParsiunas

The fix for this is now available in the deep-caht-dev and deep-chat-react-dev packages version 9.0.139

The dev packages behave the same way as the original ones - except their names are different. The next release for Deep Chat is going to be a big one as we are migrating a lot of its logic to another web component called active chat and with that we are changing quite a few property names, such as changing the request property to connect and initialMessages to history. The old properties will still keep working as usual except you will see warnings in the console for their deprecation. Most importantly, because this is going to be a very big release - it is likely that it will take place some time next month, so the font fix is going to remain in the dev packages until this will happen.

Let me know if you have any questions or issues. Thanks!

OvidijusParsiunas avatar Feb 27 '24 14:02 OvidijusParsiunas

Thank you! I think I wait for the proper release next month. I couldn't find a commit related to it. Does it mean, if I use other fonts it won't download the gFont anymore automatically, or is there something else we have to do?

Thanks again!

matthiasamberg avatar Feb 28 '24 07:02 matthiasamberg

Hey @matthiasamberg. I had the code for the fix in my local repo, I have just deployed it in this commit.

And you are correct, if the default font-family ('Inter', sans-serif, Avenir, Helvetica, Arial) is not used, the Google Font is not going to be downloaded.

OvidijusParsiunas avatar Feb 28 '24 16:02 OvidijusParsiunas

Hi, the fix for this is available in Deep Chat version 2.0.0.

OvidijusParsiunas avatar Jul 16 '24 11:07 OvidijusParsiunas

thank you very much!

matthiasamberg avatar Jul 17 '24 05:07 matthiasamberg