Title: Performance Issues
Last modified: October 23, 2024

---

# Performance Issues

 *  Resolved [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * (@mohammedmalleck)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/)
 * Hi ,
 * I’m using your plugin on my site and have been monitoring its performance using
   Performance tab in browser. I’ve noticed that the scripts and styles associated
   with the plugin are significantly affecting the site’s performance.
 * Could you provide guidance on how to defer all script and style files for your
   plugin? If there are built-in options or recommended best practices for optimizing
   performance, I would greatly appreciate your insights.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fperformance-issues-59%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * (@mohammedmalleck)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18090757)
 * view image for reference [https://ibb.co/M7Gvh0m](https://ibb.co/M7Gvh0m)
 *  Plugin Author [digitalapps](https://wordpress.org/support/users/digitalapps/)
 * (@digitalapps)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18090816)
 * hello, thank you for your message.
 * can you elaborate on the screenshot you provided?
   which stats would you like 
   to see improved?
 * loading scrips async or defer can be done, I will look into this
 *  Thread Starter [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * (@mohammedmalleck)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18091010)
 * Its actually the load on main thread which I find to be heavy due to the long
   tasks taking place by the siwper-bunlde.min.js code 
   [https://ibb.co/X3HP7Zy](https://ibb.co/X3HP7Zy)
   Although I am working on making my site performance better using other techniques,
   I think having defer async or pre-load for your plugins script and style tags
   can be really helpful
 *  Plugin Author [digitalapps](https://wordpress.org/support/users/digitalapps/)
 * (@digitalapps)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18108661)
 * with version 1.2.12 I added a filter that allows you to load a script with defer
   or async strategies
   `wpswiper_frontend_js_register_args` Filter
 *  Thread Starter [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * (@mohammedmalleck)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18108886)
 * Hi! 
   So I am running this code , but it does not seem to work … any idea whats
   wrong here?(its gpt btw)
 *     ```wp-block-code
       add_filter('wpswiper_frontend_js_register_args', function($args) {    // Check if the script is wpswiper-bundle-js-js    if (isset($args['handle']) && $args['handle'] === 'wpswiper-bundle-js-js') {        // Add 'defer' attribute to the script        $args['defer'] = true;    }    return $args;});
       ```
   
 *  Plugin Author [digitalapps](https://wordpress.org/support/users/digitalapps/)
 * (@digitalapps)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18109142)
 * the last -js is appended by wordpress so you the correct 
   wpswiper-bundle-jsBUT!!!!
 * I just pushed a new update that removes the extra -js
   So to correctly target 
   a script is to check for:`wpswiper-bundle`
 *  Thread Starter [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * (@mohammedmalleck)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18109199)
 * So I tried going with `wpswiper-bundle` , `wpswiper-bundle-js` & `wpswiper-bundle-
   js-js` but none of them worked.
   Also you were talking about a new update but 
   I cannot see a new version to update the plugin to so I think we(users) should
   wait for the new version to be available.Also just leaving the image [here](https://ibb.co/RGKLCSD)
   of the script tags
 *  Plugin Author [digitalapps](https://wordpress.org/support/users/digitalapps/)
 * (@digitalapps)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18109270)
 * Please update to version 1.2.13 and let me know.
 *  Thread Starter [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * (@mohammedmalleck)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18109317)
 * Unfortunately, it does not work on my end.
   Maybe my code is wrong or something…

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

The topic ‘Performance Issues’ is closed to new replies.

 * ![](https://ps.w.org/wp-swiper/assets/icon-256x256.png?rev=2402464)
 * [WP Swiper](https://wordpress.org/plugins/wp-swiper/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-swiper/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-swiper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-swiper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-swiper/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [mohammedmalleck](https://wordpress.org/support/users/mohammedmalleck/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/performance-issues-59/#post-18109317)
 * Status: resolved