Category: troubleshooting

Fix for slow-loading Google ads

Google’s AdSense ads, and lots of others, are added to pages using Javascript, and if that Javascript appears early in the page’s HTML, it can seriously slow down the rendering of the rest of the page. That’s because browsers generally refuse to do any further rendering of the page until they have a requested Javascript […]

HTML entities from AJAX into input fields using jQuery

I was receiving a JSON string that contained an HTML entity, like this:
 
{ myValue: ‘€30,000′ }
 
I was supposed to put the value of myValue into a text input. I assigned the value to a variable and tried:
 
$(’#myInput’).val(myValue);
 
but that was putting the string, literally, into the input:
€30,000
— this in spite of the fact that this […]

jQuery IE7 “Operation Aborted” error

I just got done troubleshooting an issue with a page with some jQuery on it. The jQuery was in a script called from the head of the document, and its job was to rearrange some elements into tabs once the page was loaded.
In unpredictable cases (sequential reloads had different results), loading the page in […]