• Resolved reeper6868

    (@reeper6868)


    I have added hook in child theme:

    `function prefix_topbar_content() {
    echo do_shortcode( ‘[oceanwp_library id=”1188″]’ );
    }
    add_action(‘ocean_before_header’,’prefix_topbar_content’);

    and created a custom template in Theme Panel -> My library

    When you do a refresh you can see the lag in the load of the custom top bar. Is there anyway to fix this?
    Any help would be much appreciated.
    thanks

    • This topic was modified 3 years, 5 months ago by reeper6868.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @reeper6868,

    When loading the page, first, the styling is loaded and then the rest of the site content (HTML tags in the content and other scripts).
    On the page’s source, I can see some of the styles loaded in the page’s middle. It means that styles load later (after many HTML tags). Precisely the issue that is in the Top Bar on your website. Please check this screenshot: https://i.postimg.cc/mrwFy8pd/image.png?

    The solution to solve that issue is simple. You can use the cache plugin, and it will be adding the CSS combiner on your site; it’s suitable for optimizing your website. In addition, it can help you to load all CSS on the top of the page and solved your issue.

    I hope that helps,
    Best Regards

    Thread Starter reeper6868

    (@reeper6868)

    hi Shahin, thanks for replying. I haven’t activated the caching plugin as the site is still in development. Will do that when done.
    Thanks alot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Top Bar Lag Load’ is closed to new replies.