---
title: "how will typoscript be executed performance wise"
url: "https://www.typo3.net/d/99031-how-will-typoscript-be-executed-performance-wise"
source: "typo3.net"
tags: ["TYPO3","TypoScript","English","Frage"]
created: "2010-05-24"
last_reply: "2010-05-24"
replies: 0
solved: false
page: 1
pages: 1
lang: "en"
---

# how will typoscript be executed performance wise

TYPO3 › TypoScript · 0 Antworten · gestartet 2010-05-24

## Eröffnungsbeitrag

**muriel** · 2010-05-24 · [Beitrag #1](https://www.typo3.net/d/99031-how-will-typoscript-be-executed-performance-wise/1)

I'm just wandering in general how typoscript is executed performance wise.

For instance if you have the following code, how will it be executed?

if the <div id=footer"> exists put temp.footer content in it. What means that the relevant queries are only executed it the div footer exists.

or

put content temp.footer into <div id=footer"> if the div exists. What means that if the div footer doesn't exists the queries are still executed.

```typoscript
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  
  # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
  
  # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

  subparts {
    
    	footer < temp.footer
    	container < styles.content.get
  }
}
```

---

Quelle: „how will typoscript be executed performance wise“, typo3.net, https://www.typo3.net/d/99031-how-will-typoscript-be-executed-performance-wise
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
