I am working on HtmlServices of google apps script. In this script I implemented two functionality, Autocomplete and DataTable, for this used many js and css file. All functionalities are working well but when the script is loaded, its taking too much time. Once the script is loaded completely, then its working fine. This script is published on web.
So, there is any approach to minimize the loading time?
I’ve had the same issue but came to the conclusion that how I’d designed my script contributed to the problem. Originally I designed my script to build the entire page and then present it to the user. When the script began, it appeared to take a long time for the first page to present making the page look slow. It was slow.
I’m now in the process of switching to presenting a “loading…” type page which shows quickly. After loading, it does a callback to the server to build the remainder of the page, passing it back to the client script to presents it. I’m not entirely done with this yet but it looks promising.
I’m not sure that GAS will ever be fast since it’s dependent on Caja. Therefore we need to use good design in our code to help was much as possible.