ResolvedDouble loading of css files

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #31803
    ADP
    Participant

    Hi!

    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!

    #31808
    Althemist
    Keymaster

    Hi 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.

    #31813
    ADP
    Participant
    This reply has been marked as private.
    #31819
    Althemist
    Keymaster

    There is no easy fix. We will release an update with fixed child theme style loading tomorrow.

    #31826
    ADP
    Participant

    I 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!

    #31842
    Althemist
    Keymaster

    Hi 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,
    Dimitar

    #31850
    ADP
    Participant

    Hi 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!

    #31851
    Althemist
    Keymaster

    Hi 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.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register