Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Brandon Brigham
Brandon Brigham
3,716 Points

Page isn't showing all elements until refreshing multiple times

Hi guys,

So if you visit the following 3 pages:

http://fourandhalf.com/grow/ http://fourandhalf.com/scale/ http://fourandhalf.com/elevate/

Sometimes when going to these pages I will get only half of the page elements loaded and sometimes all of the page will be loaded. Sometimes I have to refresh the page 3 times in order to see if all displayed correctly.

Any idea why this is happening?

All plugins (site is on WordPress) have been updated and theme is up to date. All images are compressed.

Any ideas?

Thanks!

Garrett Sanderson
Garrett Sanderson
12,735 Points

Looks like you have a lot of Javascript failing in the console. I would take a look at that and see where things are breaking in your code.

Looks like this line is causing a function error.

<script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 2) {if(!/(android)/i.test(navigator.userAgent)){jQuery('#input_2_3').mask('(999) 999-9999').bind('keypress', function(e){if(e.which == 13){jQuery(this).blur();} } );}} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [2, 1]) } ); </script>