---
schema_version: "1"
id: 9082e560de85978e15e435852b8b37c1252ec50fa93c255affc5f99ee2a4f1ad
title: Control Load Order for Multiple Embedded Views
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/pro/desktop/embed_loadorder.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/en-us/embed_loadorder.htm
source_site: help.tableau.com
content_type: documentation
content_hash: be4c80712eb4c25ecf721ccace22de4f46916b79b8338cbcd8105b890f39206d
description: The embed code for Tableau Server 2022
---
[Skip to main content](#main-content)

# Control Load Order for Multiple Embedded Views

> [!TIP]
> 
> The embed code for Tableau Server 2022.3 and later and Tableau Cloud has changed to use the Embedding API v3. For current information about embedding, see the [Embedding API help](https://help.tableau.com/current/api/embedding_api/en-us/index.html). The information in this topic is for prior versions of embedding (using the Tableau JavaScript API v1 and v2).

Control load order using prior versions of embedding

You can control the order in which multiple views load for the people working with your views. This feature can be accessed only using embed code that relies on the Tableau JavaScript file.

In the following example, two views are embedded. The second view loads first, followed by the top view. If you embed multiple views and give them all the same load order value, or if you don't specify load order parameters, they are loaded in the order in which they appear on the page.

**Script Tag Example**

<script type='text/javascript' src='http://myserver/javascripts/api/viz\_v1.js'> 
</script> 
<object class='tableauViz' width='600' height='400' style='display:none;'> 
   <param name='host\_url' value='http://myserver/' />  
   <param name='site\_root' value='' /> 
   <param name='name' value='MyCoSales/TopPerformers' /> 
   <param name='tabs' value='yes' /> 
   <param name='toolbar' value='yes' /> 
   <param name='filter' value='Salesperson=Top 5' /> 
   <param name='load-order' value='0' /> 
</object> 
<script type='text/javascript' src='http://myserver/javascripts/api/viz\_v1.js'> 
</script> 
<object class='tableauViz' width='600' height='400' style='display:none;'> 
   <param name='host\_url' value='http://myserver/' />  
   <param name='site\_root' value='' /> 
   <param name='name' value='MyCoSales/SalesScoreCard' /> 
   <param name='tabs' value='yes' /> 
   <param name='toolbar' value='yes' />  
   <param name='load-order' value='-1' /> 
</object>