Skip to main content

Frontend Architecture

The main way Deserted Chateau's frontend works is documented here.

Page Loading

Most dynamic information is loaded onto pages via jQuery AJAX requests, except for some pages where this approach causes a janky loading appearance. At the moment, the user profile page has a lot of content rendered in PHP, to make page loading a more smooth experience overall.

Components

For pieces of HTML that need to be created a lot, Deserted Chateau uses standard HTML5 Templates . These are held in a variety of HTML files in the src/Core/Includes folder, and are included on pages where they are needed via PHP.

There are then methods in the js/Templates folder that allow for creating items from these templates and populating them.