how to host font awesome locally and load asynchronously
-
hello
font awesome
is blocking loading causing lack of render block in search engines and dropping ranking.How do I to not block and fetch the icons remotely from the font awesome cdn and instead load locally and asynchronously by a hosted icon file without stopping the page loading of other elements in this plugin?The page I need help with: [log in to see the link]
-
Hi, Sorry for the inconvenience caused you. Can you please kindly share the font awesome cdn URL as well as the website URL where the issue you are facing is currently? So that we will inspect the issue and assist you to fix the issue.
Render Block CDN:
https://use.fontawesome.com/releases/v5.8.1/css/all.css
https://use.fontawesome.com/releases/v5.8.1/webfonts/fa-solid-900.woff2
https://use.fontawesome.com/releases/v5.8.1/webfonts/fa-brands-400.woff2Website:
When I switch to CSS icons the render block disappears. But Links to Social Networks with CSS icons disappear too (why? Error?) and only the sharing icons are shown.
How to use font awesome without render block in this plugin?
Hi, Sorry for the delay in response. To use font awesome Icons in AMP, Kindly refer to the following tutorial once for reference purposes and let us know back if you face any issues or queries, So that we will assist you in fixing them.
Here is the reference tutorial: https://ampforwp.com/tutorials/article/how-to-use-font-awesome-icons-in-amp/
I’ve tried all your tutorials to solve the problem.
this “solution” does not work and breaks the site (print attached)
This solution breaks the site and looks for the icomoon font (which I don’t use because it’s .ttf and slower to load)
@font-face{font-family:’icomoon’;font-display:swap;font-style:normal;font-weight:normal;src:local(‘icomoon’), local(‘icomoon’), url”(/plugins/accelerated-mobile-pages/templates/design-manager/swift/fonts/icomoon.ttf’)}.amp-carousel-img img{object-fit:contain}
see I’m asking for a help to locally host font awesome.
could you please give me the path to host locally?
As you take a long time to answer, if you give me each step to solve an annoying problem like that of font render block, this ticket will take a year.
could you just answer my question?
the question is how do i host font awesome locally in this plugin?

error of
link rel=”stylesheet” href=”cdn.fontawesome/5.8.1″ crossorigin=”anonymous”
-
This reply was modified 2 years, 11 months ago by
faninja.
after hours of investigation I found that the search icon was using the icomoon font and was causing the crash.
but anyway, changing the font family of the icon search to font awesome, the site doesn’t crash anymore but the instruction of the tutorial didn’t have any effect. font awesome keeps generating render block.
the instruction <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.8.1/css/all.css” crossorigin=”anonymous”> in the head continues there for you to see that it doesn’t work to remove the font awesome render block.
I did several tests putting https://use.fontawesome.com/releases/v5.8.1/css/all.css with preload, prefetch, dns pre and nothing removes the render block.
please when answering this ticket tell me how I LOCALLY HOST the font awesome in this plugin
I wait
thanks
-
This reply was modified 2 years, 11 months ago by
faninja.
Hi, We are extremely sorry for the inconvenience and delay in response. Can you please share with us the exported AMP optional panel settings once? So that we will import it at our end and check the issue once and get back to you accordingly to resolve it.
Here is the reference tutorial of it: https://ampforwp.com/tutorials/article/how-to-import-and-export-the-amp-option-panel-settings/
no need to apologize every time, your service is slow.
the file that you ansered is in this link: https://drive.google.com/file/d/1x_K1yvtEszl81YkWlxF_k-XlC_YEo4P0/view?usp=sharing
I ask you once again to skip this step-by-step step, which will make this ticket last for several months due to its slowness.
the problem is that you don’t answer my question: how do I host font awesome locally?
could you tell me how do i host font awesome locally?
if you just answer my question how do i host font awesome locally? it will be better for everyone
I don’t know if you understand but I would like to know how do I host font awesome locally?
why do you ignore my question how do i host font awesome locally?
after the next long response time how do i host font awesome locally? please
await for a response of how do i host font awesome locally?
Something here or giving up on solving the problem?
the developer gave up on solving the problem. the plugin is good but generates a render block, which slows down the site and reduces rake. And the developer could not solve this and gave up on the problem. #fail
Hi, Sorry for the inconvenience. The issue in AMP is that only some origins are allowed for font serving via link tags.
Typography.com: https://cloud.typography.com
Fonts.com: https://fast.fonts.net
Google Fonts: https://fonts.googleapis.com
Typekit: https://use.typekit.net
Font Awesome: https://maxcdn.bootstrapcdn.com, https://use.fontawesome.comIf the link is from other website including the website on which AMP is running , link will not load and AMP code will become invalid.That is why there is no options to include local fonts in AMP
Hope you understand.
Here is the ref: https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/custom_fonts
I completely understand the problem. but you already solved that by creating the category “css icons” as an option to “icomoon” and “fontawesome”. The problem is that “css icons” not show social media links. Only show social media share icons. Can you extend the “CSS icons” category also to social media external links icons in an upgrade of the plugin?
thanks for ansewer
Hi, Can you please kindly share the screenshot of where the social media links icon is not loading for reference purposes? So that we will check the issue by looking into it and assist you accordingly in fixing the issue ASAP!
swift icons = all icons appear normally
image: https://drive.google.com/file/d/1VZN12K_u6LSZk9ErhFSCkhVwZ58FuFyJ/view?usp=sharing
css icons = only sharing icons appear. link icons for social network addresses disappear; crash search icons. menu close icons disappear. other icons break.
image: https://drive.google.com/file/d/1mc3d0c_FVH7JhdF53MsQJJ8YeLnjVJ7W/view?usp=sharing
HINT: CSS ICONS MODE SHOW ALL ICONS WITHOUT BREAKING OR DISAPPEARING ANYONE.
it is possible. it would solve a serious ranking and speed issue if we could use CSS icons without crash icons.
waiting for an answer
thanks
-
This reply was modified 2 years, 9 months ago by
faninja.
Hi, Thank you for your response. Can you please kindly let us know if it is happening after any specific recent update? Kindly please check once and confirm if you get from which version you are facing this. So that we will analyze the issue and assist you accordingly to fix it ASAP!
-
This reply was modified 2 years, 11 months ago by
The topic ‘how to host font awesome locally and load asynchronously’ is closed to new replies.