{"action":"opened","issue":{"url":"https://api.github.com/repos/NodeGuy/ServerDate/issues/23","labels_url":"https://api.github.com/repos/NodeGuy/ServerDate/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/NodeGuy/ServerDate/issues/23/comments","events_url":"https://api.github.com/repos/NodeGuy/ServerDate/issues/23/events","html_url":"https://github.com/NodeGuy/ServerDate/issues/23","id":94678659,"number":23,"title":"Make ServerDate independent from server echo","user":{"login":"rdoepke","id":2574570,"avatar_url":"https://avatars.githubusercontent.com/u/2574570?v=3","gravatar_id":"","url":"https://api.github.com/users/rdoepke","html_url":"https://github.com/rdoepke","followers_url":"https://api.github.com/users/rdoepke/followers","following_url":"https://api.github.com/users/rdoepke/following{/other_user}","gists_url":"https://api.github.com/users/rdoepke/gists{/gist_id}","starred_url":"https://api.github.com/users/rdoepke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdoepke/subscriptions","organizations_url":"https://api.github.com/users/rdoepke/orgs","repos_url":"https://api.github.com/users/rdoepke/repos","events_url":"https://api.github.com/users/rdoepke/events{/privacy}","received_events_url":"https://api.github.com/users/rdoepke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T09:28:16Z","updated_at":"2015-07-13T09:28:16Z","closed_at":null,"body":"Currently, the Javascript needs to \"finished\" in the backend language via echo and the current timestamp and thereby called. This is bad, since it\r\n* makes it very difficult to minify the code (since you can not simply rely on the JS minification of other JS assets)\r\n* does not allow to merge the minified JS to a single JS asset file\r\n* prevents caching of the JS asset itself (as it gets written to the ServerDate.php which cannot be cached neither serverside nor clientside)\r\n* makes this library more reliant on the server language\r\n\r\nInstead, the ServerDate.js could be independently embeddable to the applications JS assets and then, by triggering AJAX requests or the previous ServerDate(now) call written in an embedded script file, start the initialization prozess."}}