New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosting files instead of using cdn #2047
Comments
You can include local JS files using e.g. template:
includes:
in_header:
<script src="local.js"></script> https://pkgdown.r-lib.org/dev/articles/customise.html?q=extra.js#additional-html-and-files |
Interesting 👀 This is also related to #1968 Two examples of templates that do not use Google fonts
For other CDN, you might want to look into custom head templates https://pkgdown.r-lib.org/articles/customise.html#additional-html-and-files |
Adding custom js-files won’t solve the problem. As I understand the docs the additional code is added. So cdn-files are still there. |
@JerryWho precisely what fonts are you talking about? Perhaps I'm missing something, but I don't see any sign that (e.g.) https://pkgdown.r-lib.org is downloading fonts from google. And in |
@hadley Google Fonts were just the trigger for a verdict in Germany. But it is expected that any files loaded from cdns need consent by the user. So I'm looking for a solution to host all files (such as js, css etc) locally and not being hosted by a cdn. |
Is #2099 relevant? |
|
In Germany using Google fonts is not allowed anymore without consent of the user because of GDPR. (see German news at https://www.golem.de/news/landgericht-muenchen-einbindung-von-google-fonts-ist-rechtswidrig-2202-162826.html)
It is expected that any other use of cdns will be a problem, too.
So it would be great that we could switch to own hosting of the files currently hosted on cdns.
The text was updated successfully, but these errors were encountered: