Problems to load the site

This topic contains 5 replies, has 2 voices, and was last updated by  Alma Viki 7 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #19645

    ldtfr1
    Participant

    Support Expired

    Hi! I’m having some problems when the loading site. It spends a lot of time on loading the page for the first time, how can improve it? I already made some optimizations, my problem at the moment it’s specificaly how to make the .js files load on the footer. How can I change it?

    #19660

    Alma Viki
    Participant

    Unknow

    Hi,

    Can you send to us your link URL?
    We will try to check it.

    Thanks

    #19684

    ldtfr1
    Participant

    Support Expired
    This reply has been marked as private.
    #19689

    Alma Viki
    Participant

    Unknow

    Did you try to use Caching plugin?
    We recommend to use Caching plugin to keep the cache.

    Thanks

    #19694

    ldtfr1
    Participant

    Support Expired
    This reply has been marked as private.
    #19698

    Alma Viki
    Participant

    Unknow

    You can try to enqueue new script on function.php file, go to themes/lambert/function.php
    on function:

    function lambert_scripts() {
    //use this code to add new js file, this code will add file js to the footer: 
    wp_enqueue_script("name_of_js", get_theme_file_uri( '/assets/js/your_file.js' ), array('jquery'), '1.4.0', true);
    
    }

    Hope this help.

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

You must be logged in to reply to this topic.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+