# Webfonts

**URL:** <https://discuss.write.as/t/webfonts/2996>\
**Category:** Development\
**Created:** [June 15, 2021, 11:24pm UTC](https://discuss.write.as/t/webfonts/2996 "2021-06-15T23:24:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![karl](https://discuss.write.as/user_avatar/discuss.write.as/karl/32/1144_2.png) [@karl](https://discuss.write.as/u/karl)\
**Post date:** [June 15, 2021, 11:24pm UTC](https://discuss.write.as/t/webfonts/2996/1 "2021-06-15T23:24:26Z")

</div>

Hey!  
I’m thinking in open a PR to check for the `WebFonts` and `JSDisabled` config values on all templates, not only on the base template. With that this config will actually work and will not load js and web fonts anymore.

I want to start with the `WebFonts` first, as I already did for my instance and it’s easier.

Is it something that the project is interested?  
If so, do you believe that’s ok to have fix this only on user facing templates? I know that we need js on the admin and having webfonts on pad can be also good.

Having a positive answer can I just open a PR following the [contributing guide](https://github.com/writefreely/writefreely/blob/develop/CONTRIBUTING.md)?

---

<div class="post-metadata">

**Author:** ![karl](https://discuss.write.as/user_avatar/discuss.write.as/karl/32/1144_2.png) [@karl](https://discuss.write.as/u/karl)\
**Post date:** [June 17, 2021, 1:11am UTC](https://discuss.write.as/t/webfonts/2996/2 "2021-06-17T01:11:51Z")

</div>

@matt any thoughts on this?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [June 17, 2021, 3:44pm UTC](https://discuss.write.as/t/webfonts/2996/3 "2021-06-17T15:44:44Z")

</div>

Hey @karl, thanks for taking an interest in this and starting the discussion! Please feel free to submit a PR or two (maybe one PR for each config option, so it’s easier to review) – this is something we’re absolutely interested in.

> [@karl](#):
>
> If so, do you believe that’s ok to have fix this only on user facing templates? I know that we need js on the admin and having webfonts on pad can be also good.

I think it’s okay to have this only on user- / reader-facing templates, yes. Our main use case for the `JSDisabled` option is for our Onion service (`writeas7pm7rcdqg.onion`), since the Tor browser disables JS. So having it on those templates would cover that situation, where readers can at least read blogs without worrying about JS. Same goes for `WebFonts` – I think the main concern is optimizing the experience for readers.

Last thing I’d add is that we should be sure to add these options to our [config documentation](https://github.com/writefreely/documentation/blob/master/admin/config.md), too.

---

<div class="post-metadata">

**Author:** ![karl](https://discuss.write.as/user_avatar/discuss.write.as/karl/32/1144_2.png) [@karl](https://discuss.write.as/u/karl)\
**Post date:** [June 17, 2021, 3:48pm UTC](https://discuss.write.as/t/webfonts/2996/4 "2021-06-17T15:48:10Z")

</div>

Thanks for your reply 🙂  
I’ll add the option on the config documentation too!

Just one more question regarding `JSDisabled` option. Currently Tor browser users can’t read the pages? I tried to access my own blog disabling js on my browser and I was able to read. Is there anything that I’m missing?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [June 17, 2021, 5:29pm UTC](https://discuss.write.as/t/webfonts/2996/5 "2021-06-17T17:29:57Z")

</div>

Things should work just fine for Tor browser users, even when we include JS on the page. But the idea behind the configuration option is to eventually provide interactivity without requiring JS at all (such as on the pad or admin pages) – such as when running WriteFreely as an Onion site.

---

<div class="post-metadata">

**Author:** ![karl](https://discuss.write.as/user_avatar/discuss.write.as/karl/32/1144_2.png) [@karl](https://discuss.write.as/u/karl)\
**Post date:** [June 17, 2021, 6:05pm UTC](https://discuss.write.as/t/webfonts/2996/6 "2021-06-17T18:05:00Z")

</div>

Ok, so can we have `JSDisabled` just for the reader part for now and on a second iteration we should add that to the writer/admin part too, right?

---

<div class="post-metadata">

**Author:** ![matt](https://discuss.write.as/user_avatar/discuss.write.as/matt/32/2760_2.png) [@matt](https://discuss.write.as/u/matt)\
**Post date:** [June 18, 2021, 3:58pm UTC](https://discuss.write.as/t/webfonts/2996/7 "2021-06-18T15:58:15Z")

</div>

Yep! I think that’d be the way to do it.
