Dialog - danopia/deviantart-difi GitHub Wiki
A DiFi Dialog is a standard structure for passing HTML displays (Modal dialogs, page fragments) to the client. They can also carry raw data in a pageData key.
{"html":"<div id=\"artist-comments\" class=\"\"> . . . <\/div>\n ",
"css":"",
"downloads":{
"jms/lib/jquery/ui/ui.draggable.js":
["http://st.deviantart.net/css/jqueryui_jc.js?18793126100"],
"jms/chrome/depths.js":
["http://st.deviantart.net/css/v6core_jc.js?147680398093",
"http://st.deviantart.net/css/tvthumbs_jc.js?3760182162",
"http://st.deviantart.net/css/v6core.css?89586811997",
"http://st.deviantart.net/css/menusys_jc.js?11718530221"]},
"dwaitcalls":[
[ ["jms\/pages\/drawplz\/gBrushList.js",
"jms\/pages\/drawplz\/brushes\/webink.js",
"jms\/pages\/drawplz\/brushes\/basic.js",
. . .
"jms\/pages\/drawplz\/brushes\/yarn.js"],
" window.gBrushList.addBrush(WebinkBrush); . . . brushes:['Splatter','Heat','Concrete','Rough']} ];\n"]],
"pageData":{
"deviationid":196717409,
"catpath":"photography\/nature\/sky",
"pimp_deviation_artist":"nicicolourful",
"deviation_width":"900",
"deviation_height":"675"},
"deps":[
["v6core.css","http:\/\/st.deviantart.net\/css\/v6core.css",89880295906,{"media":"Screen,Projection,TV"}],
["v6core_jc.js","http:\/\/st.deviantart.net\/css\/v6core_jc.js",113139965228,null],
["v6loggedin_jc.js","http:\/\/st.deviantart.net\/css\/v6loggedin_jc.js",37535503162,null]],
"title":"Sunrise by ~nicicolourful"}
TODO: As I explore, I will flesh out each key on this page.
This key was newly introduced since when I started out these docs in January. It appears to related single resources to a list of resources. I am not sure if it's saying to only load the list if the first resource is already loaded, or if loading the first resource actually means loading the list. Only time will tell.