| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
https://fonts.googleapis.com/*** | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
https://fonts.googleapis.com/***
The various versions of this link used within XC5, will always cause issues with leverage browser caching / static - mainly because, being provided by Google yep, there's no caching allowed. This has been briefly touched on before, but in a different forum query that was specifically related to the Google Analytics Module. This last item in this post (from that thread) is the most relevant : https://forum.x-cart.com/showpost.php?p=402988&postcount=7
It's actually specified within 6 different XC5 Core files (2 x php / 1 x twig / 3 x html) in our own, current XC5 based store, but we're pretty sure that NONE of these, other than the two shown below possibly, have any association with the module above. FWIW, If we run our Dev Store with that module disabled, this font is stalled called up. Your own store(s) may be different... PHP Code:
Are there any specific, technical reasons WHY this font still being used? e.g. No Google based module. like the already mentioned Google Analytics Module will work properly without the Core inclusion of this font... or something like this? If so, has anybody actually, genuinely tried this at XC? On a different domain / non-XC5 setup that we have, we removed all links to Google's "...you can't cache our precious content, otherwise we'll take our ball home..." and replaced them with alternative settings, with no detrimental effect, but it's not XC5, so this discovery may not be relevant here.... In most of the current XC 5 Core code, it's presented this way: Code:
So to summarise, if there's NO absolute technical reason for still using it, could it be replaced with an alternative (cacheable) font with effect from XC 5.3.3.* onwards? Because XC5.* is getting better and better (XC 5.3.2.9 is like chalk and cheese compared to XC 5.1.* ) so it seems a big limiting factor, to be forever following Google's own, convenient 'rules'.
__________________
Dev Store & Live Store XC Business 5.4.1.35 Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33 |
|||||||
|
#2
|
|||||||||
|
|||||||||
Re: https://fonts.googleapis.com/***
I believe it is not the case for Google Fonts, only Google Analytics is affected.
I've checked the online demo and it loads Google Fonts from the browser cache on subsequent views.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: https://fonts.googleapis.com/***
Quote:
a) The ONLY thing that DOES use those Google Fonts is the Google Analytics Module? Therefore removal of that specific Module will (or should...) also remove those fonts from the XC5 Core because they are not needed anywhere else? or b) Those fonts are actively used in several areas within XC5 and the Google Analytics Module is just one of them? If it's a) then back to the question in the previous post: Quote:
__________________
Dev Store & Live Store XC Business 5.4.1.35 Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: https://fonts.googleapis.com/***
I mean that the "Google don't cache their resources" issue applies to Google Analytics scripts only.
Google Fonts resources are cached by browsers.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#5
|
|||||||
|
|||||||
Re: https://fonts.googleapis.com/***
Just re-run prior to this post:
Quote:
Quote:
Quote:
__________________
Dev Store & Live Store XC Business 5.4.1.35 Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: https://fonts.googleapis.com/***
I doubt there were any technical reasons to use Google Fonts. Designers use web fonts not because it is a technical requirement
As for caching: I don't get what the problem is. Google do cache their fonts in the way that allows them quickly fix problems with their CSS (if any happens). Their FAQs state that font files are cached for a year. Yes, they send an HTTP header that makes their CSS files to expire in a day, but these files are so small that this should not noticeable affect the page loading time. Plus it will be loaded once a day only. What problem do you want to fix by switching from Google Fonts to "alternatives"? What alternatives would you suggest?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#7
|
|||||||
|
|||||||
Re: https://fonts.googleapis.com/***
Quote:
Quote:
Quote:
Quote:
If it can be fixed. Fine. If it can't or it won't (because it's not sufficiently important enough currently) that's also fine. All actions are by the Dev Team though, not end-users who have identified the issue. Let's see what happens as we move into XC5.3.3.* etc
__________________
Dev Store & Live Store XC Business 5.4.1.35 Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: https://fonts.googleapis.com/***
I'm sorry, but I don't see what problem you want to fix there by switching to a different font provider (besides you don't like Google).
Browsers cache Google's font files (for a year), and cache the "wrapping" CSS file for a day - this is pretty enough for fast site loading. It may be a good idea to cache some static files forever, but in case of fonts supplied by any third-party provider it is good to have the fonts updated with newer versions released by the supplier.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#9
|
|||||||
|
|||||||
Re: https://fonts.googleapis.com/***
Quote:
Quote:
Quote:
__________________
Dev Store & Live Store XC Business 5.4.1.35 Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33 |
|||||||
#10
|
|||||||
|
|||||||
Re: https://fonts.googleapis.com/***
You can self host them you know... https://google-webfonts-helper.herokuapp.com/fonts
Shameless plug, little experiment (in SEO mainly). Search for 'Google Fonts List' in Google
__________________
xcartmods.co.uk |
|||||||
|
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|