# Inline PDF Previews

**URL:** https://meta.discourse.org/t/inline-pdf-previews/157649
**Category:** Theme component
**Tags:** official, desktop, pdf-previews
**Created:** [July 13, 2020, 9:18pm UTC](https://meta.discourse.org/t/inline-pdf-previews/157649 "2020-07-13T21:18:10Z")
**Posts on this page:** 1
**Showing post:** 155

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [November 2, 2025, 10:19pm UTC](https://meta.discourse.org/t/inline-pdf-previews/157649/155 "2025-11-02T22:19:17Z")

</div>

I got a deprecation notice for this great theme component in the developer console of the browser:

> [THEME 30 ‘PDF previews’] Deprecation notice: Accessing `site.mobileView` or `site.desktopView` during the site initialization can lead to errors and inconsistencies when the browser window is resized. Please move these checks to a component, transformer, or API callback that executes during page rendering. [deprecated since Discourse 3.5.0.beta9-dev] [deprecation id: discourse.static-viewport-initialization] [info: [Designing for Different Devices (Viewport Size, Touch/Hover, etc.)](https://meta.discourse.org/t/367810)]

---

_[View the full topic](https://meta.discourse.org/t/inline-pdf-previews/157649)._
