Plugin stay on "Loading"

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10190
    Zakstan
    Zakstan
    Participant

    Hello !
    I send you this message because I have just install Ajax Search Pro but I have a problem with this…
    I create search form but I cannot change General Options, etc. Nothing happened…
    I don’t understand because Ajax Search Lite is ok..
    Please find enclosed a screenshot, the plugin stay on “Loading …”
    Regards,
    Joachim – NosPromos

    #10192
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The problem was caused by a custom script placed in the functions.php file in the theme folder:

    add_filter( 'script_loader_tag', 'add_async', 10, 2 );
    function add_async( $tag, $handle ) {
        return str_replace( ' src', ' async src', $tag );
    }

    I have de-activated the add_filter.. part, now it’s working again.

    The datepicker core script was raising a fatal error because of the async script loading. Many scripts in wordpress are dependent on each other, and adding the “async” tag to the back-end scripts breaks this dependency, causing fatal errors in the javascript console. I’ve also noticed errors around the console on other back-end pages when the “async” tag was active. Now they are all gone.

    I only advise using that code for the front-end scripts, but it may also cause dependency issues, be careful with it.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #10195
    Zakstan
    Zakstan
    Participant

    Hey thank you ! 🙂

    I’m bitching about my old IT provider immediately 🙂

    #10210
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

The topic ‘Plugin stay on "Loading"’ is closed to new replies.