Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

I receive the following warnings:

  • XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

  • Attr child nodes are deprecated and will be removed in M45, around August 2015. Please use 'Attr.value' instead.

    I'm just finishing my app. Is there something i can do (or don't use) to eliminate these warnings? The jquery updates are done automatically?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Hello Giorgio,

Could you send us some screenshots with these errors? When do they fire?

Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

I'm sorry, i haven't reminded to enclose it.
Image

The xmlhttp warning does fire immediatly at start. I suppose it is because i'm calling the DB to get user info before displaying info. Is "better" (!?) to include a button to the splash screen? ask the confirm to user before querying the db? In mobile telephone apps I like to have as less button as possible...

The Attr Child nodes warning was fired during the mapping before opening a popup. I'm sorry for this but i'm redrawing the UX and the warning doesn't appear anymore.

Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Image

Image

The warnings are here again, unfortunately with a "Component not found error" :-((
I hope this can help you about the "Attr Child" warning.
As you can see, there is a popup with a List component. Inside the List there are two Collapsible.

The component not found error is already signaled here
https://getsatisfaction.com/apperyio/...

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Could you check what service fires this error? Does app navigate to another page before that service complete?

Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Hi Sergiy.
Sorry for delay but i was busy to debug other things.
I'm very near to ready to publish.

I created these two video to help you find where the problem arise:
Testing app - http://youtu.be/FYM1q-UDj5M
App design description - http://youtu.be/RqzfWkAN0jk

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Please move open popup from click event to service complete event

Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Great!
It works without warnings.

Thanks a lot.

Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

Sorry. My ceck was too fast.
Moving the open popup to the last operation in the service complete actions doesn't solve the warning.

It happen also in "Soste" pages where there aren't popup but the design is similar:
a collapsblobk components inside a list component

Image
Image

Giorgio Draghetti
Posts: 0
Joined: Mon Oct 27, 2014 12:13 pm

Chrome js warnings: XMLHttpRequest, Attr child nodes

I think there were something corrupted in the browser.
I restarted the computer and ... the warnings are disappeared from both pages.

OK. I surrender. Is better if we consider this closed for now. I will make a new check after next Chrome update.

Return to “Issues”