Title: Inline small CSS file
Last modified: May 20, 2019

---

# Inline small CSS file

 *  Resolved [AiratTop](https://wordpress.org/support/users/airathalitov/)
 * (@airathalitov)
 * [7 years ago](https://wordpress.org/support/topic/inline-small-css-file/)
 * Could you inline small CSS file from this plugin into page html code?
    FILE: 
   [https://plugins.trac.wordpress.org/browser/embed-pdf-viewer/trunk/css/embed-pdf-viewer.css](https://plugins.trac.wordpress.org/browser/embed-pdf-viewer/trunk/css/embed-pdf-viewer.css)
 * It will reduce a number of requests and reduce blocking of page rendering.
 * And why are you include this CSS into all pages? (even the page not contain embedded
   PDF files). Could you optimize this plugin’s behavior?
 * Embed PDF Viewer 2.0.3
    WordPress 5.2.0

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [7 years ago](https://wordpress.org/support/topic/inline-small-css-file/#post-11553150)
 * I can certainly look to optimizing it’s loading but I am uncertain as to the 
   time saving of inline CSS vs enqueuing the CSS, which is the recommended method.
 * Especially as it’s a local request.
    -  This reply was modified 7 years ago by [Andy Fragen](https://wordpress.org/support/users/afragen/).
 *  Thread Starter [AiratTop](https://wordpress.org/support/users/airathalitov/)
 * (@airathalitov)
 * [7 years ago](https://wordpress.org/support/topic/inline-small-css-file/#post-11554229)
 * Ok, you can do what you think is right.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/inline-small-css-file/#post-11596072)
 * I have looked into this and as a PDF or PDF block could be embedded in nearly
   every type of page I don’t see how to limit this.
 * As the recommended method of adding CSS is to use `wp_enqueue_style` and not 
   use inline CSS I’m going to close this is `wontfix`.
 * If you can figure out a way to effectively manage this without creating inline
   CSS please submit a PR.
 * [https://github.com/afragen/embed-pdf-viewer/pulls](https://github.com/afragen/embed-pdf-viewer/pulls)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Inline small CSS file’ is closed to new replies.

 * ![](https://ps.w.org/embed-pdf-viewer/assets/icon.svg?rev=2883712)
 * [Embed PDF Viewer](https://wordpress.org/plugins/embed-pdf-viewer/)
 * [Support Threads](https://wordpress.org/support/plugin/embed-pdf-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-pdf-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-pdf-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-pdf-viewer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/inline-small-css-file/#post-11596072)
 * Status: resolved