---
schema_version: "1"
id: caf3ddc394d9bc9a9f2026757188ba81c129ff724ec3831978ba297ebeb97fa2
title: Control Load Order for Multiple Embedded Views
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/pro/desktop/embed_loadorder.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/en-gb/embed_loadorder.htm
source_site: help.tableau.com
content_type: documentation
content_hash: b04b95985cfdeb320ab5162cf3ff3198e5fd08327fdeac4250d6ad14b5ee70e0
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-gb/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>