Updated to latest DEV.

When I use FF3, page loads, then a blank white page masks it. View source shows a sharethis div container. This doesn't happen with other browsers (tested on Opera 9 and Chrome). Can someone else confirm? I had to revert to 1.4 and clear cache to fix this.

Comments

robloach’s picture

Title: White screen in FF3 after update to latest DEV » ShareThis Behavior returns white screen when $scripts is out of <head>

The latest dev uses some crazy behaviors and AJAXy features so that it doesn't stall the page when requests to ShareThis are slow. It moves away from directly embedding the

variable to loading the external ShareThis API when the whole page is done rendering and loading. I've discovered that when your $scripts variable is in < head> it works fine, but when it's at the bottom of the page, it results in a white screen. Still investigating. Any help would be appreciated. http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/sharethis/s... So, play around with moving your $scripts variable around, and let me know if you discover anything interesting. I'd love to get it working without the direct embed....
spiffyd’s picture

One thing interesting is that this issue also seems to be browser specific. I only get this white screen on FF3 and not Chrome or Opera. Probably should run some more tests on other browsers or computers so help from others would be appreciated. So maybe a workaround could be generated from this...

But any way, I digress... I will play around to see if I find any other interesting ways that may fix this...

robloach’s picture

I moved this into the DRUPAL-6--2 branch, and will switch back to direct embedding the ShareThis API in DRUPAL-6--1 from DRUPAL-6--1-4. It would be wicked to get this working because seeing no external JavaScript embedded on the page and not stalling rendering is pretty awesome.

spiffyd’s picture

I also found another possible related bug...

When I use the frontpage views with AJAX enabled so that AJAX can be used to navigate different pages, Sharethis only works and displays properly in the front page. When I click on the other pages which are called via AJAX, the ShareThis icon does not show and clicking on the "ShareThis" link does not load the popup. Rather, I see the URL become http://whatever_was_here.com/#sharethis_0 in some browsers. Also, in these pages, links no longer work - I cannot click on anything.

phpdiva’s picture

Try to add button=false to the main ShareThis JavaScript. I think this should fix it.

robloach’s picture

Status: Active » Fixed

This is fixed with #401466: New API.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.