Today, we are introducing an update to HTML service —
IFRAMEsandbox mode. Using this sandbox mode, you can significantly improve the performance. There are three key benefits.
- Your UI loads up much faster
- It requires very few code changes: just set the SandboxMode to
var html = HtmlService.createHtmlOutputFromFile('foo');
We couldn’t resist using the new HTML service ourselves, so we’ve published an alternate version of the Google Translate add-on on GitHub that uses the iframe sandbox mode as well as Polymer and material design concepts.
With the launch of the
IFRAMEsandbox, it is now time to bid goodbye to
UiApp. The UI service was a very useful way to serve user interfaces in Docs and Sheets at a time when sandboxing technologies were still evolving. Effective today, UI service is deprecated. It will be removed from documentation and autocomplete in the script editor on June 30, 2015. If you have built any UIs using
UiApp, they will continue to work.
We are also deprecating the DocsList service. The Drive service and advanced Drive service are more powerful ways to access Google Drive data from Apps Script. DocsList will be shut down on April 20, 2015. Please migrate your scripts from the DocsList service to the Drive service or the advanced Drive service.
We understand that feature deprecation is sometimes inconvenient, but we strongly believe that the new features help the product evolve and gives Apps Script users better functionality, ultimately allowing developers to create more powerful solutions.
Posted by Saurabh Gupta, Product Manager, Google Apps Script