> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/web/best-practices.md).

# Best practices

- [Best Practices to Improve WebViewer Performance and More](https://docs.apryse.com/web/best-practices/best-practices.md): Improve WebViewer performance by preloading it for instant display. Avoid 'display: none' to hide elements. Learn about loading documents efficiently and reusing WebViewer instances for better memory
- [Optimize and reduce lib folder for WebViewer](https://docs.apryse.com/web/best-practices/optimizing-lib-folder.md): Optimize & reduce lib folder for WebViewer with a script to delete unnecessary files. Follow step-by-step instructions to customize your WebViewer setup efficiently. The Apryse Web SDK streamlines sec
- [Optimizing PDF files for fast web viewing](https://docs.apryse.com/web/best-practices/viewer-optimized-pdf.md): Learn how to create and open viewer optimized PDF files for fast loading and viewing. Use SaveViewerOptimized function or DocPub utility to compress and optimize PDFs efficiently. The Apryse Web SDK s
- [Preloading WebViewer library/worker files](https://docs.apryse.com/web/best-practices/preload-worker-files.md): Learn how to optimize WebViewer with the initialDoc option to efficiently load large library resources like PDF or Office workers. Preload workers upfront for seamless file processing and display on s
- [Streaming XOD documents](https://docs.apryse.com/web/best-practices/streaming-option.md): Stream XOD documents efficiently with streaming option in WebViewer. Learn how to optimize load times by downloading only necessary parts for display. Perfect for pre-converted XOD files using web ser
- [Streaming PDF Documents using JavaScript](https://docs.apryse.com/web/best-practices/usedownloader-option.md): Streamline PDF document streaming with JavaScript using the "Downloader" feature for efficient fetching of linearized files. Learn how to enable, disable, and requirements for optimal performance. The


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/web/best-practices.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
