Title: Libxml parser removes localized scripts
Last modified: December 18, 2018

---

# Libxml parser removes localized scripts

 *  Resolved [E.jr](https://wordpress.org/support/users/ejr-1/)
 * (@ejr-1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/libxml-parser-removes-localized-scripts/)
 * I’ve done some testing with the latest version of Pagespeed Ninja and found that
   Ultra preset is the most optimal solution for performance/stability.
    During 
   this testing also did runs with experimental preset which enables libxml html
   parser, which seems to really boost performance, but breaks objects/variables
   added to page via wp_localize_script, so any scripts that depend on this data
   provided by localized script will also break. Is there a particular config that
   can be done as a workaround for this?

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

 *  Plugin Author [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * (@dryabov)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/libxml-parser-removes-localized-scripts/#post-11016423)
 * Fixed in PageSpeed Ninja 0.9.33.
 *  Thread Starter [E.jr](https://wordpress.org/support/users/ejr-1/)
 * (@ejr-1)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/libxml-parser-removes-localized-scripts/#post-11016917)
 * Thanks man, awesome plugin.

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

The topic ‘Libxml parser removes localized scripts’ is closed to new replies.

 * ![](https://ps.w.org/psn-pagespeed-ninja/assets/icon.svg?rev=1722219)
 * [PageSpeed Ninja - Cache, Minify, Defer CSS JavaScript, Critical CSS, Optimize Images, Convert WebP](https://wordpress.org/plugins/psn-pagespeed-ninja/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/psn-pagespeed-ninja/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/psn-pagespeed-ninja/)
 * [Active Topics](https://wordpress.org/support/plugin/psn-pagespeed-ninja/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/psn-pagespeed-ninja/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/psn-pagespeed-ninja/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [E.jr](https://wordpress.org/support/users/ejr-1/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/libxml-parser-removes-localized-scripts/#post-11016917)
 * Status: resolved