davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.76k stars 1.39k forks source link

No jQuery .ready()? #120

Closed BBaysinger closed 10 years ago

BBaysinger commented 10 years ago

Resizer function wasn't working until I resized the window. I added: $(document).ready(resizer). It works now. Was there a reason that wasn't in there?

davatron5000 commented 10 years ago

You probably have FitText in the <head> of your document. I'd recommend putting scripts in the footer and you should be able to execute FitText sonner than the $(document).ready() event fires.

Closing: No reduced test case.

BBaysinger commented 10 years ago

Actually, the Javascript was embedded just before the closing body tag.