When content preloading is enabled for a modification, flickering is decreased when displaying large content items, such as banners. However, content preloading has some limitations. For example, you can't define a modification to be displayed on specific hours of the day or specific days of the week. You can work around this limitation by binding a trigger to a placement that you then associate with a modification.

This example uses simple custom JavaScript for getting the time of the day as a rule for the trigger. The trigger is defined so that the modification is only displayed to visitors during the evening hours (18:00 to midnight). This is useful when you want to target audiences that typically make their purchasing decisions after office hours.

You must first create a trigger to detect the time of the day, and then create a placement for using the trigger to display the modification.

Creating the trigger

To create the trigger:

  1. In the Frosmo Control Panel, select Triggers.
  2. Click Create trigger.
  3. Define the following settings:

    Defining the trigger settings

  4. Click Save.

Creating the placement

To create the placement:

  1. In the Frosmo Control Panel, select Modifications > Placements.
  2. Select Create placement.
  3. Define the following settings:

    Defining the placement settings

  4. Click Save.

Using the trigger in a modification

To use the trigger in a modification:

  1. In the Frosmo Control Panel, select Modifications > Overview.
  2. Find the modification to which you want to attach the trigger, and click the modification name.
  3. In the Basic settings view, click Select placement.
  4. Select the placement you created, and click Save.

The modification is now only displayed to visitors during the evening hours (18:00 to midnight).

You're done with this example!