Delay in Chat (shortcode page)

Hi, how I can do for chat messages (inserted into a page using shortcode) appear immediately? A delay of four seconds is currently produced from the user and sends the message that appears.