| Project: | Cufón |
| Version: | 6.x-1.0-beta4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I know cufon has to be the first scrip.. after jquery... so it can quickly replace the texts without any visible delay.
But I was experiencing delays.. and not using IE.. but the IE fix is implemented too.. so.. I thought... why? I've seen that it is because I have other scripts before the cufon script... what can it be? Google Adsene scripts that are in the middle of the page... sometimes adsense is fast and there is no delay.. but most of the times the delay is there, specially if you have more than one adsense script. I don't know how this could be solved
I'm using cufon to replace primary links fonts and header h1 and h2 fonts... I can let the delay appear for H2 headers.. but I don't want the delay to be in the primary links.. it's very visible... so what I did is.. put
<script type="text/javascript" src="/sites/all/modules/cufon/js/cufon-drupal.js?D"></script>right after the primary links div.. in my page template... so the primary links are replaced without any delay by adsense.... then the script is again called at the bottom of the page to replace all the rest of h1 and h2.. with delay but that's ok if there is no other solution.
I know is a bad solution to call the script twice... but what could I do?