--- title: "Composer has performance issues" slug: "composer-has-performance-issues" updated: 2025-07-11T09:57:13Z published: 2025-07-11T09:57:13Z canonical: "docs.grassfish.com/composer-has-performance-issues" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.grassfish.com/llms.txt > Use this file to discover all available pages before exploring further. # Composer has performance issues ## Symptoms When editing a spot in the HTML Composer, performance slows down due to media preloading. ## Resolution The following explanation and steps can help you identify and solve the issue. ### Understand media retrieval In the spot, the `getElementWrapper` function from the [gfWizardBase library](https://docs.grassfish.com/docs/integrate-the-gfwizardbase) is used to get media data from the `ascData` field. This function calls another function called `wrap`. When it handles a media element, it creates a DOM element called `clippedMediaHtml` using the `getMediaElements` function. This causes all related images and videos to load. Loading all this media can slow down performance. ### Switch functions To avoid performance issues, you can use the `getElementValue` function instead. It lets you access media data through `getMediaData`, without creating the wrapper. This prevents the media from loading unnecessarily and helps improve performance. ```javascript const mediaElement = window.gfWizardBase.getElementValue('Media'); const mediaDataObject = window.gfWizardBase.getMediaData(mediaElement[0]?.SpotId); const mediaUrl = mediaDataObject?.FullFilePath || null; ``` > [!NOTE] > Note > > To learn more, see our articles on [HTML spot development](https://docs.grassfish.com/docs/html-spot-development).