Activity Forums Salesforce® Discussions What are the static resources in Salesforce?

  • Avnish Yadav

    Member
    July 30, 2018 at 1:36 pm

    Hello Chanchal,

    Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files. A single static resource can be up to 5 MB in size. An organization can have up to 250 MB of static resources. Static resources apply to your organization’s quota of data storage.

    Thanks.

  • madhulika shah

    Member
    September 13, 2018 at 1:52 pm

    Hi Chanchal,

    Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files. Using a static resource is preferable to uploading a file to the Documents tab because:

    • You can package a collection of related files into a directory hierarchy and upload that hierarchy as a .zip or .jar archive.
    • You can reference a static resource by name in page markup by using the $Resource global variable instead of hard coding document IDs.
  • Parul

    Member
    September 13, 2018 at 5:03 pm

    Hi,

    Static resources allow you to upload content that you can reference in a Visualforce page, the user interface in a Visualforce base can display dynamic content the value of which keeps changing based on user responses. But there are times when we need some content which should not change with the change in values of other components in the page. For example, an image file may be required to remain constant. Such content which cannot be changed in a page is known as a static resource.

    Following are a few static resources in Salesforce −

    Images
    Javascript Files
    Flash files
    CSS files

    Thanks

  • shariq

    Member
    September 14, 2018 at 12:59 am

    Hi,

    Static Resource - It is kind of a memory where you save/upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs