-
Notifications
You must be signed in to change notification settings - Fork 2
6.4 Flow of theme loading
Lucas F. Lu edited this page Jan 30, 2020
·
1 revision
The framework loads theme pages with the following sequence.
- Html tage first
- Check and build for any route named menus
- Check for forced third party libraries such as bootstrap, jquery, etc.
- Child header blade is loaded.
- Child footer blade is loaded.
- Child sidebar blade is loaded.
- Take care of framework script list. Creating named sections, stacks from the list.
- Header tag is created.
- Yield header section, render headerstyle and header script stacks. Set csrf token.
- Body tag is created.
- Child index blade is loaded. You may freely set locations of your contetns, sidebars, footer, menu, stacks, and sections.
- At the very bottom of body tag, OutletReource stack is rendered together as part of footerscripts stack.
- footerstyles stack is rendered.
- JsBeforeReady stack is rendered.
- DocumentReady is rendered just before closing body tag.
Feedback is much appreciated! I can be reached at [email protected]