Forum Stats

  • 3,768,732 Users
  • 2,252,842 Discussions


JSP Rendering with Droplets

Ashwin.Raj Member Posts: 3



header html

droplet to get customer info from backend

jsp code to display customer info

droplet to get account info

jsp code to display account info

footer html


In this case the customer account droplet is performing heavy tasks / api calls taking close to 2 seconds - which we cannot avoid.

When the page is loaded it shows header, then displays customer info immediately then there is a delay of 2 seconds before account info is displayed, then footer dislays

My  understanding is jsp get converted to servlet including the droplets and final response is sent back to browser for rendering.Why there is a delay is rendering account info section. Shouldn't everything get rendered in one shot as all code(including all droplets) is executed on server side before the final response is sent back to the browser.

This discussion has been closed.