base64 fonts in CSS not loading
-
hello mate
congrats for this awesome plugin
i’m the developer of quadmenu, a new megamenu plugin for WordPress
i note that there are some issues with the base64 fonts included in the CSS files of my plugin
when they are cached by WPFC they are no loading
please check this image
The page I need help with: [log in to see the link]
-
thank you so much. Can you tell me the css url pleaes?
hello Emre
here is the CSS URL
https://quadmenu.com/wp-content/plugins/quadmenu/assets/frontend/css/quadmenu.css?ver=1.6.6
if you want to make a local test here is our plugin
I fixed the problem. Can you delete wp fastest cache and download the following version to get the latest changes please?
great thanks!
i’ll tell my users
can you telme what was the issue?
After minify css files the site url is added into url(). The problem occurs when the url() contains data:font/opentype so I added a condition as below for this issue.
... if(preg_match("/data\:font\/opentype/i", $matches[1])){ $matches[1] = $matches[1]; }else if(preg_match("/data\:image\/svg\+xml/i", $matches[1])){ $matches[1] = $matches[1]; }else{ ...Can you let me know after trying please?
of course, ill test this today and update here
thank you
good 🙂
Hello, I have a same problem with current version of Fastest cache plugin, I am getting 404s at base 64 font:
origin: https://langon.cz
:path: /wp-content/plugins/quadmenu/assets/frontend/css/data:font/opentype;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBIUAAAC8AAAAYGNtYXAAZLuqAAABHAAAAGRnYXNwAAAAEAAAAYAAAAAIZ2x5ZjFz4sQAAAGIAAAB4GhlYWQHbNV0AAADaAAAADZoaGVhBuwDygAAA6AAAAAkaG10eBH/AU8AAAPEAAAAJGxvY2EBeAH4AAAD6AAAABRtYXhwAAsAHQAAA/wAAAAgbmFtZZlKCfsAAAQcAAABhnBvc3QAAwAAAAAFpAAAACAAAwJVAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQASAAAAA4ACAACAAYAAQAg6QDpBOkG/3/wAAAAAAIOkA6QLpBv/9/8AAf/j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AAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
accept-language: en-US,en;q=0.9
accept-encoding: gzip, deflate, br
accept: */*
user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36 PTST/180723.140756
:scheme: https
referer: https://langon.cz/wp-content/cache/wpfc-minified/8acglvxb/2bqw6.css
:method: GET
cookie: __unam=7a6aa7b-1669c373475-6460bb0c-1; _ga=GA1.2.843888021.1540219158; _gid=GA1.2.821410825.1540219158; _dc_gtm_UA-64239707-1=1; ssupp.vid=4dg8NZZ4OGIWtL38y9T6fu5W6LrOZnrUJz18391622102018; TawkConnectionTime=1540219159084
:authority: langon.cz@werfewr , I fixed the problem. Can you delete wp fastest cache and download the following version to get the latest changes please?
The topic ‘base64 fonts in CSS not loading’ is closed to new replies.