Home › Forums › Support › Functions.php vs Hooks Element This topic has 5 replies, 2 voices, and was last updated 4 years, 7 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts September 1, 2019 at 6:16 am #998371 docdanijb Is there any difference in site loading speed / resource hogging etc. in regards to: 1. Adding code through functions.php vs 1. activating Elements in GP 2. Adding code through Elements In addition; will the code only load on the relevant page (if Display rules/Location is set)? Thanks! Yours, Daniel September 1, 2019 at 6:22 am #998376 DavidStaff Customer Support Hi there, if there is any difference it would be negligible. Yes, the code is wrapped within a conditional so will only be added if that applies. September 1, 2019 at 6:34 am #998384 docdanijb So, as I read that; it’s in other words better to use conditions for specific functions, than to add it general in functions.php September 1, 2019 at 6:43 am #998388 DavidStaff Customer Support Yes, unless you’re looking to add a function, script or other content across your entire site then conditionals are required. Elements makes this so much easier to do. You can of course include conditionals in your own functions: https://codex.wordpress.org/Conditional_Tags September 1, 2019 at 6:49 am #998390 docdanijb Thanks, appreciate it! September 1, 2019 at 6:57 am #998393 DavidStaff Customer Support You’re welcome Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In