feat: improved caching of api-backed content
This commit is contained in:
@@ -358,8 +358,13 @@
|
||||
</f:section>
|
||||
|
||||
<f:section name="PriceTable">
|
||||
<f:comment><!--
|
||||
This section renders once per year, so "load" would fire two requests on first
|
||||
paint that compete with the price calendar for PHP workers. The tables sit below
|
||||
the fold, so fetch them when they actually come into view.
|
||||
--></f:comment>
|
||||
<div hx-get="{ep:uri.ajax(action: 'priceTable', controller: 'AjaxCalendar', extensionName: 'epproducts', pageUid: settings.defaultAjaxUid, arguments: '{hotel: product.calendarHotel, year: year}', format: 'html')}"
|
||||
hx-trigger="load">
|
||||
hx-trigger="revealed">
|
||||
<f:render section="TableLoadingIndicator"/>
|
||||
</div>
|
||||
</f:section>
|
||||
|
||||
Reference in New Issue
Block a user