web applications - JavaScript file is not loading fully in all browsers -


i see strange behavior (or may missing something). have websphere 8.5. deployed ear. working fine.

instead of repacking , deploying every time small change, copy js , css files directly websphere exploded folder , overwrite existing files. see changes getting reflected.

i updated js file , added couple jquery functions , copied file above. when refresh page, see updated code (which somewhere in middle of file). js file not loading in 3 browsers (ie8, chrome , ff latest). it's getting cut off in last 10 lines so.

the file has 1784 lines. not sure if there size limit on browser side or websphere tinkering or else going on. idea?

i did check js file copied exploded websphere folder. has complete code.

note page has few more js files (jquery , other files) in addition one.

edit:

i think websphere keeping size of file somewhere (maybe?) , sending size every time, unless there clean deploy or restart (?).

i removed few lines of updated code. browser loads, many number of additional lines of code. once remove code completely, loads full file. (this not issue code though).

is there caching need clear in websphere?

check page hot deployment , dynamic reloading. in general says may need restart application.

also check, if application reloading enabled, i'm not sure if relevant static files.

if reloading of classes enabled , polling interval greater 0 (0), application files reloaded after application updated. javaserver pages (jsp) files in web module, web container reloads jsp files when ibm extension jspreloadingenabled in jspattributes of ibm-web-ext.xml file set true. can set jspreloadingenabled true when editing web module's extended deployment descriptors in assembly tool.

you can restart app console provided in comments or via wsadmin script.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -