---
schema_version: "1"
id: d1d10319e7d876a0efb874b4b4d08eef20ce91767fecadae7298066e8067b057
title: Create Embedded Static Resources
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/embedded_static_resources.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.embedded_static_resources.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 83b8852a551040f86f3aa05320c17f03f050d5e0cd49bb77b3f2f1dd844f583f
description: Create and upload JavaScript files to Salesforce as static resources and then apply them to your website or Experience Builder site. With static resources, you can change one or many pages with a few clicks in code settings on existing deployments.
products:
  - Service Cloud
release: "264"
---
# Create Embedded Static Resources

Create and upload JavaScript files to Salesforce as static resources and then apply them to your website or Experience Builder site. With static resources, you can change one or many pages with a few clicks in code settings on existing deployments.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.legacy_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d27431e58">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d27431e58 ">To create and edit static resources:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d27431e58 ">Customize Application AND Author Apex</td>

          </tr>
        </tbody>
      </table>

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_important.png)

Important

Legacy Chat will be retired on February 14, 2026. To avoid service interruptions to your end users, switch to enhanced Chat (formerly Messaging for In-App and Web). Enhanced Chat offers many of the legacy Chat [features that you love](https://help.salesforce.com/s/articleView?id=service.miaw_replacing_chat_considerations.htm&language=en_US) plus asynchronous conversations that can be picked back up at any time. Learn about migrating in [Help](https://help.salesforce.com/s/articleView?id=service.miaw_replacing_chat_considerations.htm&type=5&language=en_US) and [Trailhead](https://trailhead.salesforce.com/content/learn/modules/migrating-from-legacy-chat-to-enhanced-chat).

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_note.png)

Note The Lightning Platform manages and distributes the static resources, acting as a content distribution network. Caching and distribution are handled automatically.

Create your JavaScript static resource files, including strings, arrays, JSON, and JS functions. Here are some examples to get you started:

- [Channel Menu Static Resources](https://help.salesforce.com/articleView?id=embedded_menu_static_examples.htm&language=en_US)
- [Experience Site Static Resources](https://help.salesforce.com/articleView?id=embedded_chat_community_static_examples.htm&language=en_US)

Then upload JavaScript files to reference in your Channel Menu Experience site or Channel Menu external website deployment. Add files for Embedded Chat to Experience sites only (not available for website pages).

Here are the steps to add your resources:

1. From Setup, in the Quick Find box, enter Static Resources, then select **Static Resources**.
2. Click **New**.
3. To identify the resource in Visualforce markup, enter text in the Name box. Use this static resource name, not the file name, for reference later in code settings.
    
    Create a name that’s unique in your org, and provide a different name for each static resource. Start with a letter, use alphanumeric characters, and no spaces. Don’t end with an underscore or add two consecutive underscores.
4. In the Description text area, specify an optional description of the resource.
5. To navigate to a local copy of the resource that you want to upload, click **Browse** next to File.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_note.png)
    
    Note A single static resource file is up to 5 MB, and an organization can have up to 250 MB of total static resources.
6. Set the Cache Control to **Public**. Share the static resource data on the Salesforce server with other users in your organization for faster load times.
7. To apply the resources, return to your code settings in [Channel Menu](https://help.salesforce.com/articleView?id=embedded_menu_code_changes.htm&language=en_US) or [Experience sites](https://help.salesforce.com/articleView?id=embedded_chat_communities_code_settings.htm&language=en_US).
    
    ![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_tip.png)
    
    Tip If you make changes, you can reupload static resources without changing your code settings name in setup or in the code snippet and property builder.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_important.png)

Important If you change your Channel Menu setup, the results can take up to 10 minutes to appear for the first time on your website due to caching.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_legacy-264-0-0-production-enus/081af4ec-6c06-4d4b-9443-cb3516bbc46d/images/icon_note.png)

Note For Chat website pages, see [Customize an Automated Invitation](https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_customize_chat_invitation.htm).

- **[Experience Site Static Resource Files](https://help.salesforce.com/s/articleView?id=service.embedded_chat_community_static_examples.htm&release=264.0.0&type=5)**  
    Create JavaScript files to upload as a static resource and apply to Embedded Chat for your Experience Cloud site. Here’s a code example for chat invitations to get you started.

#### See Also

- [Channel Menu Code Settings](https://help.salesforce.com/articleView?id=embedded_menu_code_changes.htm&language=en_US)
- [Chat Code Settings for Experience Sites](https://help.salesforce.com/articleView?id=embedded_chat_communities_code_settings.htm&language=en_US)