ResolvedDouble loading of css files
Tagged: double css, double style
- This topic has 7 replies, 2 voices, and was last updated 1 year, 7 months ago by
Althemist.
- AuthorPosts
- October 4, 2021 at 8:34 pm #31803
ADP
ParticipantHi!
My Lafka theme is double loading some of the css files:
– lafka child (lines: 26,29)
– google fonts (lines: 27,28)
– font awesome (lines: 456,457,458,459)
– et-line-font (lines: 460,461)
– flaticon (lines: 462,463)See source code of https://www.polarbuffet.ro
Let me know please how to solve this issue. Thank you!
October 5, 2021 at 3:28 pm #31808Althemist
KeymasterHi razvan.toader,
I have just checked your website. The child theme style.css is loaded twice, indeed. We are now checking what might be causing this.
As for the other styles, they are not loaded twice. The first link is PRE-LOADING the font and the second one is the real loading. This is a standard performance optimization.
October 5, 2021 at 4:22 pm #31813ADP
ParticipantThis reply has been marked as private.October 6, 2021 at 4:33 pm #31819Althemist
KeymasterThere is no easy fix. We will release an update with fixed child theme style loading tomorrow.
October 6, 2021 at 11:32 pm #31826ADP
ParticipantI see. Another must in the next update, if I may, is the loading of the child css file AFTER the loading of the “Site main accent color” styling and the css file /wp-content/themes/lafka/styles/lafka-responsive.css . In fact the best it will be to load the child css file after any other css files in the HEAD. There is the real need to over-ride some of the styles, that cannot be done as they are loaded before the child file.
best regards!
October 11, 2021 at 1:43 pm #31842Althemist
KeymasterHi ADP,
Thanks for your valuable feedback. It helps us a lot to keep improving our themes. The theme (and the child theme) is now updated and your latest suggestion is also included.
Best regards,
DimitarOctober 11, 2021 at 6:50 pm #31850ADP
ParticipantHi Dimitar,
You’re welcome! I made the latest update and I see that the main issue is solved, although there are many css files that are still loading after the child css that may bring other issues. It’s ok for now. Thank you! I consider the ticket closed.
Best regards!
October 12, 2021 at 12:20 pm #31851Althemist
KeymasterHi ADP,
The other CSS files are structural styles from different js plugin’s libraries that should not be changed anyway. Also, loading them before the child-theme style would affect the performance, so it’s not a good idea.
- AuthorPosts
You must be logged in and have valid license to reply to this topic.