thisuserid
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Forms for ACF] Admin Styles and Scripts loaded on Front-EndHi 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 thecore-forms.phpof this plug-in enques all acf scripts withacf_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.
Forum: Plugins
In reply to: [Advanced Forms for ACF] Admin Styles and Scripts loaded on Front-EndThank 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.