# Assets Management

## What are assets?

A web page consists of a base HTML document and any additional files it may include, such as stylesheets, scripts, images and fonts. We will refer to these additional files as **assets**.

![2015-05-25\_103425.jpg](/files/-LD6N2--9_6OcUbyXroh)

**Most of the focus in XOOPS asset management is on stylesheet and script assets.**

![2015-05-25\_103513.jpg](/files/-LD6N2-3dlnhYQ2j3gTC)

Assets are a very important part of the user experience. For today's rich, highly interactive web applications, the asset performance may be more significant than the backend application and database performance.

**Assets Performance Factors**

There are several factors that influence the performance of assets:

* Asset size
* Number of files
* Latency
  * Network speed
    * Connection set up an tear down
    * Transfer rate
    * Currency limits
  * Client capacity
    * Processing power/load
    * Memory
    * Cache speed\*&#x20;

In order to address these issues, and to minimize the impact, there are different strategies for Assets Management:

* Minimize file sizes
* Combine files to reduce network connections
* Serve assets as static files to maximize caching
* Avoid concurrency bottlenecks
  * Assets that include other assets when loaded

Of course, there are different strategies for Development, and different for Deployment:

| Develop / Debug                                                            | Deployment Focus                    |
| -------------------------------------------------------------------------- | ----------------------------------- |
| Easy to read and edit is essential                                         | Eliminate formatting and whitespace |
| Separate files are easier to work with and may come from different sources | Combine files to eliminate latency  |

**Asset management solves the development vs. deployment dilemma by using the exact same sources for both needs.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xoops.gitbook.io/assetics/assets-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
