I have a page with modules and components from the same extension. I made some customizations to the component's template file so when the page loads it gets the current user's avatar from some external resource and update it to one of the component's tables. This avatar is also used by the modules on the same page. So I need to make sure the PHP code in the component's template is executed before the module's PHP code is executed, otherwise the avatar in the module won't show up.
So, is the component exectued before the module?