Title: webofpeace's Replies | WordPress.org

---

# webofpeace

  [  ](https://wordpress.org/support/users/webofpeace/)

 *   [Profile](https://wordpress.org/support/users/webofpeace/)
 *   [Topics Started](https://wordpress.org/support/users/webofpeace/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webofpeace/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webofpeace/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webofpeace/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webofpeace/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webofpeace/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How can I defer these JS files?](https://wordpress.org/support/topic/how-can-i-defer-these-js-files/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/how-can-i-defer-these-js-files/#post-11010805)
 * Hi [@bpayton](https://wordpress.org/support/users/bpayton/),
    Thank you fir the
   reply. but I want to do this without using any plugin. do you know any way to
   achieve the expected outcome in that way?without using any 3rd party plugins.
 * P.S:
 * I’ve checked both plugins and I found this on autoptimize’s FAQs.
 * **Why is jquery.js not optimized**
    _Starting from AO 2.1 WordPress core’s jquery.
   js is not optimized for the simple reason a lot of popular plugins inject inline
   JS that is not aggregated either (due to possible cache size issues with unique
   code in inline JS) which relies on jquery being available, so excluding jquery.
   js ensures that most sites will work out of the box. If you want optimize jquery
   as well, you can remove it from the JS optimization exclusion-list (you might
   have to enable “also aggregate inline JS” as well or switch to “force JS in head”)._
 * so it wont defer the files I want, sadly 🙁
    -  This reply was modified 7 years, 6 months ago by [webofpeace](https://wordpress.org/support/users/webofpeace/).
    -  This reply was modified 7 years, 6 months ago by [webofpeace](https://wordpress.org/support/users/webofpeace/).
    -  This reply was modified 7 years, 5 months ago by [bcworkz](https://wordpress.org/support/users/bcworkz/).
      Reason: fixed formatting glitch
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10752479)
 * I’v edeleted old gallery and created a new one. it’s working fine now. thanks.
   I think including plugin’s js file in functions.php loaded the js file again 
   ana it fixed the things. thanks a lot…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10752455)
 * I tried including `jquery.modula.js` in my functions.php file. it removes the
   console error, but gallery is not loading still. HTML and scripts are the same.
   I even tried removing all scripts except jquery from my functions file. didn’t
   work.
 * Is there anything you can do? in what files in my theme I need to check/debug?
   any help will be appreciated
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10751886)
 * ps:
    even trying this line in console gives the same error
 * `jQuery('#jtg-4544').modulaGallery({alert('abc')});`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10751882)
 * I dont have the permission to do so. but it occurs in this section.
    when I put
   the shortcode and your plugin renders some html with inline scripts.
 * `<script type='text/javascript'>jQuery('#jtg-4544').modulaGallery({resizer: '
   http://localhost/mytheme/wp-content/plugins/modula-best-grid-gallery/image.php',
   margin: 10,enableTwitter: false,enableFacebook: false,enablePinterest: false,
   enableGplus: false,randomFactor: 0.5,});</script>`
 * this is where I get the peoblem. it says modulaGallery is not a function.
    I’ve
   added jquery 3.3.1 from jquery cdn in my functions file. though I remove it then
   my JS won’t work. is there any workaround you can help me with?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10749742)
 * Hi,
    if Im using custom theme, should I add something to my functions.php file?
   it seems working in wp default theme but throws an error in mine. can you help
   me fix it please?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10749651)
 * also I’m not using Autoptimize or similar plugin or any page builder plugins
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10749563)
 * I did as you said and error is still the same. how can I fix this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Modula Image Gallery - Photo Grid & Video Gallery] Slider is not showing and display jQuery error](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/slider-is-not-showing-and-display-jquery-error/#post-10749541)
 * Im only using ACF and contact form 7 and Flamingo. even akismet is disabled.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MailPoet - Newsletters, Email Marketing, and Automation] Cannot submit using forms](https://wordpress.org/support/topic/cannot-submit-using-forms/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/cannot-submit-using-forms/#post-10657798)
 * Hi,
    I did. doesn’t fix my problem though. It displays the page, but still throws
   an error(same as above mentioned), no page reload occurs
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MailPoet - Newsletters, Email Marketing, and Automation] Cannot submit using forms](https://wordpress.org/support/topic/cannot-submit-using-forms/)
 *  Thread Starter [webofpeace](https://wordpress.org/support/users/webofpeace/)
 * (@webofpeace)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/cannot-submit-using-forms/#post-10619742)
 * This is the system info tab data. hope this helps
 * PHP version: 7.0.19
    MailPoet Free version: 3.8.5 MailPoet Premium version: N/
   A MailPoet Premium/MSS key: WordPress version: 4.9.8 Database version: 5.6.35-
   81.0 Web server: Apache SMP Wed Jan 17 13:19:23 EST 2018 x86_64 WP_MEMORY_LIMIT:
   158M WP_MAX_MEMORY_LIMIT: 158M WP_DEBUG: false PHP max_execution_time: 20 PHP
   memory_limit: 158M PHP upload_max_filesize: 10M PHP post_max_size: 20M WordPress
   language: en_US Multisite environment?: No Current Theme: Twenty Seventeen (version
   1.6) Active Plugin names: mailpoet/mailpoet.php Sending Method: SendGrid Sending
   Frequency: 25 emails every 5 minutes Task Scheduler method: WordPress action=
   ping Default Reply-To address: Bounce Email Address: Total number of subscribers:
   2 Plugin installed at: 2018-08-21 08:34:59

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