I have many visualforce pages which are pulling in the same static resource js files.
How do I include one static resource within another static resource so I only have to pull one file into the visualforce page?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityYou can create a visualforce component and put all the repetiting static resources in it.
Then put this component at the end of any page (considering all static resources are JS) you want to refer.
This will work because visualforce component DOM is fetched and included in the containing page.