On Mon, Sep 7, 2026 at 11:26 AM Keith Andersen
<
contact...@gmail.com> wrote:
>
> function doGet() {
> const scriptId = ScriptApp.getScriptId();
> const appName = DriveApp.getFileById(scriptId).getName();
>
> return HtmlService.createHtmlOutput('<p>Hello, world!</p>').setTitle(appName);
> }
>
>
> Just know that making a Drive API call on every page load introduces slight latency. If performance is a priority, caching the project name using CacheService or sticking with a top-level const APP_NAME constant avoids the extra API call and scope requirements.
Pretty much what I thought. I was hoping to avoid that extra call.