• In developing wordpress there is need to using function file that will include to function.php , So this file have 2MB of size .
    I think only function that necessary in a part of website will loaded and other part of function file will not load because there is no need to call other fucntion that not in use .

    So if our thoughts is wrong Please clear function.php size will reduce site loading speed or not .

    Best Regards

    • This topic was modified 5 years, 1 month ago by TheXrion.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Any result due to file size will be marginal at best. Focus on the efficiency of your code rather than file sizes. (And remember, if you’re using a decent caching plugin, most page views are coming from cache.)

    Thread Starter TheXrion

    (@negarehgfx)

    @sterndata Thank You, My code efficiency is as standard as WordPress codex is.
    So Its unclear yet , At every page loading ( without cache plugin ) Whole function.php will load or A part that page need it ?

    Moderator bcworkz

    (@bcworkz)

    It also takes time to parse and execute conditional code and possibly fetch another file to parse. You may save a tiny bit in one scenario, but lose it all and more in another scenario. Either way, any savings is not going to be discernible to end users. You are better off spending time reducing overall page load speed, such as by optimizing images. You shouldn’t spend time “optimizing” things that make no discernible difference.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Increasing Function.php size will reduce load speed?’ is closed to new replies.