Don't use inline <style> elements for custom CSS

using a <link rel="stylesheet"/> has two main advantages:

  1. it allows the browser to cache the stylesheet when viewing multiple post on the same blog, improving load times.
  2. it allows multiple blogs to use the same stylesheet without copy/pasting via clever use of css @import. this prevents the two blogs from having their stylesheet go out of sync, and also saves a tiny bit of server space (also, the stylesheet will be cached between blogs)
1 Like

All great points. So are you suggesting we move to externally-served stylesheets instead of inline styles in WriteFreely?

well, they would still be served by writefreely, they would just be served as a separate resource.

this change would be basically invisible to users, it would simply result in a moderate load decrease for anyone hosting a writefreely instance (especially if a lot of their users have massive custom stylesheets)

1 Like

serving from the same server is essential I feel, GDPR and all. Serving from an external source or CDN on a service provider adds GDPR and privacy muck. Not that it can’t be done, it is not nice playing having to list it all, and few but more and more people block CDN’s.