-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App.js features #7
Comments
About lazy loading, see this: https://addyosmani.com/blog/lazy-loading/ TLDR: Chrome will support it natively, so any lazy loading implementation could use that .... Or just use
|
better touchscreen detection: touch: function () {
if (
('ontouchstart' in window) ||
(window.DocumentTouch && document instanceof DocumentTouch) ||
(window.hasOwnProperty &&
(
window.hasOwnProperty('ontouchstart') ||
(window.DocumentTouch && document instanceof DocumentTouch) ||
navigator.msMaxTouchPoints
)
)
) {
return true;
}
// Fallback for certain samsung devices that fail above but pass below... :/
if ('ontouchstart' in window) {
return true;
}
return false;
}, |
For handling data on the page, passing it around between different javascripts, while not polluting global vars ... (all data must be accessed using <script>
window.DataManager && !window.DataManager.setData && (
window.DataManager._internal={
data:{}
},
window.DataManager.setData=function(a,t){
return window.DataManager._internal.data[a]=t,t
},
window.DataManager.getData=function(a){
return window.DataManager._internal.data[a]
}
)
</script> |
Also needs a simple shopping cart built-in .. See #88 |
Something like:
<body>
, see issue 54).load()
alternative for loading pages or page fragments404.html
to have custom URLs)dataPres.setData()
anddataPres.getData()
).sortable-items
class, make their contents filterable/sortable.. add a little form above the table/contentAdvanced:
PWA-esque thing:
The text was updated successfully, but these errors were encountered: