$.load stops processing the scripts in a html page after a while

$.load stops processing the scripts in a html page after a while

Hello,

I have a problem when loading a section of a page via $('...').load. The section I need to load contains a simple div with some content followed by a <script></script> tag width some JS code.

The script works fine the first few tries... but after the 4-5th time the loaded script is not processed anymore.

The funny thing is that if the section I need to load is bigger that 512B then the loaded script is always processed successfully.

I have no clue what the problem can be. Can anyone help me?

Regards,
Cosmin