dont-use-device-condition
: Don't use device condition to show or hide the componentIt is strongly advised to utilize the ftd.desktop
and
ftd.mobile
components in order to display components on desktop
and mobile devices, respectively. This is because fastn
performs optimization
techniques, including decreasing the size of the created component tree,
generating optimized code that renders quickly, and reducing the component's
dependencies.
ftd.responsive-type
and ftd.length.responsive
, that are specified for the
corresponding devices.-- desktop-page:
if: { ftd.device == "desktop" }
-- ftd.desktop:
-- desktop-page:
-- end: ftd.desktop