Ongoing Fonts Issue
-
Hi
Still struggling with fonts I’m afraid.
When I run GT Metrix with ?ao_nooptimize=1 in the homepage URL it tells me that there are no fonts that are trying to be loaded from the domain, (only google and the cdn)
When I run normally with AO on, it tells me that I should preload the font resources and are shown as being required to be preloaded from the domain.
This is all visible in their Waterfall
Many thanks
Jason
The page I need help with: [log in to see the link]
-
Where are you seeing the message you should preload the font resources Jason? Because that’s something GTmetrix doesn’t flag (yet) and I don’t see GPSI saying so either?
frank
Oh I can see them on this page: https://www.truckpages.co.uk/trucks-for-sale/
They don’t seem to be on the homepage?
But where are you seeing the message you should preload the font resources Jason? Can you make a screenshot, upload it and share the URL to it so I can see what you’re referring to?
In this GTMEtrix Report you can see that the fonts are loaded from the domain: https://gtmetrix.com/reports/www.truckpages.co.uk/htZ6mRG9
Here is the Google Pagespeed regarding the same files: https://snipboard.io/UvyYTN.jpg
Here it is without the AO turned on for the same page: https://snipboard.io/1EyOnH.jpg
Thanks
J
OK, now I understand π
reason for the preload being asked is because those fonts are used by the critical CSS, try adding them to the comma-separated preload field in Autoptimize -> Extra maybe?
I have tried that – wondering why it doesn’t happen on the homepage.
I am not sure why CCSS is using the fonts when the site’s own css is not. Han this be edited out?
What is added in the CCSS is kind of a black box for me, maybe check with criticalcss.com support (via the “contact” link)?
Thanks I have just sent them a message.
While I have your attention though, I am trying to reduce the size of the cache and have gone through your blog post and identified some inline js that is responsible for creating a cached file for every product page (we have over 3500). I can see where I would enter a filename to exclude in the AO settings but not how to stop inline js?
These are the two inline js:
<script type="text/javascript"> jQuery(document).ready(function(){ var $ = jQuery; var inputAuthor = '<input type="hidden" value="23" name="stm_changed_recepient"/>'; $('.stm_listing_car_form form').append(inputAuthor); }) </script></style> <script> var stm_motors_currentAjaxUrl = 'https://www.truckpages.co.uk/trucks-for-sale/used-2010-iveco-75e-16-eev-in-liverpool/'; var resetAllTxt = 'Reset All'; var prevText = 'Previous'; var nextText = 'Next'; var is_rental = ''; var file_type = 'file type noimg'; var file_size = 'file size big'; var max_img_quant = 'max imgs 3'; var currentLocale = 'en'; var noFoundSelect2 = 'No results found'; var allowDealerAddCategory = ''; var filterRemoveHidden = 'cacba68034'; var addToCompare = '3841e2924d'; var addTestDrive = 'b6ec601c6a'; var addTradeOffer = '254aaf1020'; var loadMoreCars = '623cf35337'; var getCarPrice = 'f89c4d28b9'; var addToFav = '11926aa471'; var getFav = '329d370ef4'; var dealerLoadCars = '487aa0318b'; var dealerLoadReviews = '8920844a92'; var submitReview = '0331084e4b'; var restorePassword = '17b557fa8a'; var reportReview = 'c8bec18175'; var loadDealersList = 'cc6f458979'; var addACar = '1e84ec3a0a'; var getCarsInvtMap = '6ead678b2a'; var sellerPhone = '8d9aed2748'; var subsChangeStatus = 'ca7bb041c8'; var rentalCheckCar = '7450d26580'; var availableCarDate = '865f042dd7'; var stickyPostsMagazn = '2872654ff1'; var getEvents = 'd1dea5dae4'; var testDriveModal = '7387efcdcf'; var clearData = '100b570b93'; var invNoFilter = 'a194dbff1b'; var valueMyCar = 'e82b2f0b83'; var getFileSize = '7d40daae97'; var sellOnlineNonce = '89e1ccd2b2'; </script>About to look at the css as well
Thanks again
try
stm_motors_currentAjaxUrlmaybe?Sorry, I don’t understand, I have to put this in the Exclude scripts from Autoptimize: in the javascript section?
https://snipboard.io/TLvxrG.jpgI have been trying to understand the process. Am I even close?
https://snipboard.io/VlwUga.jpgSorry, I donβt understand, I have to put this in the Exclude scripts from Autoptimize: in the javascript section?
yes π
I have been trying to understand the process. Am I even close?
yes, looks OK π
Sorry, I donβt understand, I have to put this in the Exclude scripts from Autoptimize: in the javascript section?
yes π
Do I need to put something from the first set of js in as well as I still have 370+ files after just 1 1/2 hours?
ah, indeed also add
stm_changed_recepientmaybe?
The topic ‘Ongoing Fonts Issue’ is closed to new replies.