Errors when changing CSS & JS Loading settings

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Errors when changing CSS & JS Loading settings

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34650
    justinhollender48
    justinhollender48
    Participant

    I was attempting to change my ASP search settings and ran into the following errors:

    • Uncaught TypeError: Cannot read properties of undefined (reading ‘fn’)
    • Uncaught TypeError: window.WPD.intervalUntilExecute is not a function

    It happened after I updated the settings under Compatibility & Other Settings:

    CSS & JS Loading > Javascript source: changed to Minified (default)
    Script loading method to Optimized (recommended)

    I’ve reverted the changes for now but was hoping you could help select the best settings and troubleshoot the errors.

    Thank you!

    #34656
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    You have a rule set on the Asset Cleanup plugin, to defer one of the plugin script files: https://i.imgur.com/HlEJsJB.png
    This causes the problem, as the other scripts files are not deferred, and the order of execution is not preserved. If you remove the async and defer, features from that script, it will resolve the problem. Or you can enable the same async/defer options to all the other scripts too, that will also work.

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.