Can I include an asset once per page, even if multiple stacks are displayed?

0 votes
asked Mar 11, 2015 in Stacks API by q2aadmin (6,045 points)

I have a button image that I'd like to include in my stack as an asset. But I only need one copy for all the stacks on the page.

1 Answer

0 votes
answered Mar 11, 2015 by isaiah (13,745 points)
selected Mar 11, 2015 by q2aadmin
Best answer

Assets (such as an image or mp3 file) included with your stack don't need to do anything special. All assets get exported to the same directory and the names are not forced to be unique, so no matter how many stacks the user places, there will be just one copy of the asset exported.