webofpeace
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How can I defer these JS files?Hi @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 5 years, 11 months ago by webofpeace.
- This reply was modified 5 years, 11 months ago by webofpeace.
- This reply was modified 5 years, 11 months ago by bcworkz. Reason: fixed formatting glitch
Forum: Plugins
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorI’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
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorI 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
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorps:
even trying this line in console gives the same errorjQuery('#jtg-4544').modulaGallery({alert('abc')});
Forum: Plugins
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorI 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: 'https://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
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorHi,
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
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery erroralso I’m not using Autoptimize or similar plugin or any page builder plugins
Forum: Plugins
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorI did as you said and error is still the same. how can I fix this?
Forum: Plugins
In reply to: [Modula Image Gallery] Slider is not showing and display jQuery errorIm only using ACF and contact form 7 and Flamingo. even akismet is disabled.
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 occursThis 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