• Resolved jfrelich31

    (@jfrelich31)


    I’m using ajax with my theme, the assets only load if the 1st page that is viewed has a form on it. Unless I load all assets globally my forms won’t work while viewing additional pages. Loading all of the assets globally really slows my website down because of all of the unnecessary files. Is there a way to load the forms and assets using ajax without loading all assets globally?

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

Viewing 1 replies (of 1 total)
  • Plugin Support Ethan Choi

    (@ethanchoi)

    Hi @jfrelich31,

    By default, WPForms only loads its files conditionally. That means if there is no form on the page, we don’t load our files since they aren’t needed. The theme you are using uses AJAX transitions which doesn’t actually reload the page, so the form doesn’t display correctly since the files are not loaded.

    To quickest way to fix this is to load the files globally on every page, as you’ve mentioned.

    Alternatively, you can reach out to your theme’s support team and ask how to disable the AJAX loading for the particular page in question.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Load Assets with Ajax Theme’ is closed to new replies.