Hi community,
Will it slow down the website if the child theme’s functions.php file has a lot of code? For example, 3000 lines of code.
Hi community,
Will it slow down the website if the child theme’s functions.php file has a lot of code? For example, 3000 lines of code.
My functions.php has 9000+ lines (with comments)
Yes it slow it down, but the thing about web servers is that they are made for it.
As long the code executes without errors and stuff, it is what the thing is for.
If you used a code snipped plugin or so, you could determine when the code runs. Page, frontend, backend, conditional logic.
When in functions it always runs all the time.
But the server is really fast and it will takes less the a second.
Maybe your hosting provides tools to see server load and stuff.