Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Thumbs are not clickable


  • Please log in to reply
4 replies to this topic

#1 Natalka Zubar

Natalka Zubar

    Member

  • Members
  • PipPip
  • 12 posts

Posted 10 March 2012 - 07:52 AM

Just upgraded to latest version (free, though I am PRO user). Nothing changed from past week - at one day thumbnails stopped being cickable. I saw such thread on wordpress.org http://wordpress.org...ug...-clickable however nothing written there helped me.

Site is in Ukrainian, widget can be seen here http://maidan.org.ua...pes/crazynotes/

Thank you
NZ

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 11 March 2012 - 07:12 PM

Hi,

I think the issue here is that jQuery is being loaded near the bottom of your page, but there's a large chunk of inline jQuery-based JavaScript at the top of your page. The result is a JavaScript error on page load that is most certainly confusing TubePress's initialization. Screenshot: http://i.imgur.com/HelOn.png

Upgrading TubePress wouldn't have caused a rearrangement of where your scripts are loaded. Have you been working on your theme recently perhaps?

#3 Natalka Zubar

Natalka Zubar

    Member

  • Members
  • PipPip
  • 12 posts

Posted 12 March 2012 - 02:12 PM

Thank you! You saved me :)

Hi,

I think the issue here is that jQuery is being loaded near the bottom of your page, but there's a large chunk of inline jQuery-based JavaScript at the top of your page. The result is a JavaScript error on page load that is most certainly confusing TubePress's initialization. Screenshot: http://i.imgur.com/HelOn.png

Upgrading TubePress wouldn't have caused a rearrangement of where your scripts are loaded. Have you been working on your theme recently perhaps?



I added plugin that moves javascript to bottom (to speed up page loading which is big issue for us). It does not move all java script to bottom but only properly reqistered one, that was the issue I think. When I disabled that plugin - tubepress started working ASAP.

However! I really need it working and I think it was only tubepress that had issue with it. Most of tubepress js code were moved to bottom or page - only this piece remains on top

<script type="text/javascript">function getTubePressBaseUrl(){return "http://maidan.org.ua/wp-content/plugins/tubepress";}</script>

Is there any way to move it to the bottom too? Or it's impossible?



Thank you!

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 13 March 2012 - 12:55 AM

Most of tubepress js code were moved to bottom or page - only this piece remains on top

<script type="text/javascript">function getTubePressBaseUrl(){return "http://maidan.org.ua/wp-content/plugins/tubepress";}</script>
Is there any way to move it to the bottom too? Or it's impossible?


In short, no. Here is the spot in TubePress that writes that particular line of code. Rewriting it to have the option of loading at the bottom will take some time. But honestly leaving it high in the loading order of your page will have an absolutely negligible impact on performance. It's the big scripts that cause delays, and you're smart to move them to the bottom of the page.

I still suggest that once you are able to fix the inline JavaScript (around line 73 of your HTML source) that TubePress will start working normally. The problem is that that inline JavaScript relies on jQuery, which isn't loading until way later in the DOM. Does that make sense?

#5 Natalka Zubar

Natalka Zubar

    Member

  • Members
  • PipPip
  • 12 posts

Posted 13 March 2012 - 12:34 PM

Thank you, Eric!

I think I understood the problem now. Will figure how to fix it - requires rewriting theme files.

Best wishes
NZ