Title: Defer javascript loading adding # to .js url
Last modified: October 23, 2019

---

# Defer javascript loading adding # to .js url

 *  Resolved [agilejoshua](https://wordpress.org/support/users/agilejoshua/)
 * (@agilejoshua)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/defer-javascript-loading-adding-to-js-url/)
 * The defer/async setting doesn’t seem to work nicely with wordpress builtin enque
   script version cachebusting. I am using a simple filemtime timestamp.
 * With defered loading **off** I am getting the correct path
    src=”/path/to/script.
   js?ver=1571824457″
 * With defer **on** I get:
    src=”/path/to/script.js?#038;ver=1571824457″
 * The script still works but cache busting does not.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stanimir Stoyanov](https://wordpress.org/support/users/sstoqnov/)
 * (@sstoqnov)
 * SiteGround Representative
 * [6 years, 7 months ago](https://wordpress.org/support/topic/defer-javascript-loading-adding-to-js-url/#post-12057186)
 * Hey [@agilejoshua](https://wordpress.org/support/users/agilejoshua/)
 * Thanks for reporting this. Indeed there is a bug, how `remove_query_arg`, removes
   the parameter we use to add the defer param.
 * We will include a fix in the next version. If you give me your site url I will
   manually patch your plugin.
 * Regards,
    Stanimir

Viewing 1 replies (of 1 total)

The topic ‘Defer javascript loading adding # to .js url’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [defer loading](https://wordpress.org/support/topic-tag/defer-loading/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stanimir Stoyanov](https://wordpress.org/support/users/sstoqnov/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/defer-javascript-loading-adding-to-js-url/#post-12057186)
 * Status: resolved