You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I load this on large desktop and try to get the content in the div via jQuery, it returns "Content Fallback", not "Width 960+". I also on ready, resize, and action.
Response.ready(function(){// it will return "Content Fallback"console.log($('#test').html());});Response.resize(function(){// It will return that content that being changed, it's exactly what I need, // but it can't return content when first load and not resizeconsole.log($('#test').html());});Response.action(function(){// it will return "Content Fallback" on first time load, // and return the content that being changed.console.log($('#test').html());});
So, I think in fact my problem is how to get the correct content when the page loads the first time. Thank you, sorry for my bad English again, hope you can understand what I mean.
The text was updated successfully, but these errors were encountered:
To run code after the initial change, run it either or after your Response.create() setup or if using only [data-responsejs] to setup then immediately after the response.js file runs.
To run code after subsequent changes, use Response.resize(fn)
Sorry for my English. For example:
If I load this on large desktop and try to get the content in the div via jQuery, it returns "Content Fallback", not "Width 960+". I also on ready, resize, and action.
So, I think in fact my problem is how to get the correct content when the page loads the first time. Thank you, sorry for my bad English again, hope you can understand what I mean.
The text was updated successfully, but these errors were encountered: