When compiling, take layout options first for PJAX support.