Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thisuserid

    (@thisuserid)

    Hi Fabian,
    short update on this topic. First problem I found, I use AF for a newsletter field in the footer on every page. I saw the core-forms.php of this plug-in enques all acf scripts with acf_enqueue_scripts(); on line 115.
    When I disable this line, everything is nice and tidy again, no bloated code.

    Because I have several ACF Addons installed, I have many scripts to load there.
    Too bad, cause I enqueue the scripts with every page load, not just on one contact form page.
    Can you think of any solution for that? I’d be very happy if I could slim down the traffic.

    • This reply was modified 9 years, 3 months ago by thisuserid.
    Thread Starter thisuserid

    (@thisuserid)

    Thank you Fabian for your reply.
    My message was a little bit confusing, I agree :). When the Advanced Forms Plugin is activated, anytime I visit the frontend, the frontend loads all the scripts and styles which are usually only loaded when I visit the backend.
    Or in other words, as soon as I activate the AF Plugin, the frontend loads unnecessary styles and scripts, which the backend needs, but not the frontend.

    The only thing I included though is a custom admin.css stylesheet for the backend, to customize the design for the client’s dashboard. Therefore I added some lines of code in the functions.php to load this style sheet.

    Do you think it has something to do with it? I will try.

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