R Code running slower in web player

I have written a not-very-bulky run code as an R script in spotfire. The code runs and the output gets displayed in a noticable yet managaeable time (2-3 secs). 

The same dashboard, when opened in web browser takes a significantly longer time to run (20-25 secs).

I am a newbie in spotfire and hence not able to understand the reason behind this lag. Is there anyway I can avoid this time lag in browser?

Login