Search code examples
performancecode-snippetsmodx

Does the amount of snippets installed on your MODX affect the loading speed of the frontend pages?


I'm just curious about if letting installed some snippets that are not essentials to me but handy to left installed makes sense in a common package ready to be reinstalled.

Thanks


Solution

  • Just installing them has no impact on the front end rendering speed of your pages.

    You'll need to actually use them (ie. by including the snippet tag in one of your templates or resources so it is parsed by MODx) for it to affect load time.

    You should cache snippets whenever possible - [[snippet]] instead of [[!snippet]] - to ensure your pages load quickly and to free up server resources.