Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Defer javascript cause problem

Featured Replies

Well, this should normally be put in Wordpress but it just seems to be more suitable to be posted here.

 

So, I have this plugin that shows related posts on my site and normally it works and shows like this:

dsddds.png4

 

 

But now when I use a defer javascript plugin, it looks like this:

sd.png

 

What can be the problem ? And interestingly, using that plugin solve a conflict making one of my other js not working when another js was active on the same page.

Thanks in advance.

Things like this are often a problem with plugins and combining them. It's much better to create the functionality yourself. JavaScript should always be located in the footer anyway, preferably in a all single file, unless you are using something like require.js which I doubt you are.

 

Keep the related posts plugin for now, remove the js deferral plugin and put your js where it should be (Footer)

 

 

All that said it seems odd that this error is causing you grid to break. that does not put any faith in the plugins you are using.

Edited by rbrtsmith

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.