Skip to content

[4.0] Simplify keepalive.js#35725

Merged
bembelimen merged 4 commits intojoomla:4.0-devfrom
dgrammatiko:KeepAlive
Oct 7, 2021
Merged

[4.0] Simplify keepalive.js#35725
bembelimen merged 4 commits intojoomla:4.0-devfrom
dgrammatiko:KeepAlive

Conversation

@dgrammatiko
Copy link
Copy Markdown
Contributor

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Apply the PR
Change the Session Lifetime (minutes) to 1 in Global Configuration -> System
Observe the Other in the network tab of your browser's console

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Screenshot 2021-10-02 at 13 11 26

Documentation Changes Required

None, We're switching from XHR to sendBeacon which is widely supported
https://caniuse.com/beacon
Screenshot 2021-10-02 at 13 25 43

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.0-dev labels Oct 2, 2021
Copy link
Copy Markdown

@Stuartemk Stuartemk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMG_20211002_124634

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

dgrammatiko commented Oct 2, 2021

@Stuartemk yes all these are correct...

Edit: probably you're totally unaware how Joomla is dealing with the static assets, please read the readme.md: https://github.com/joomla/joomla-cms/tree/4.0-dev/build

@Stuartemk
Copy link
Copy Markdown

@Stuartemk yes all these are correct...

Edit: probably you're totally unaware how Joomla is dealing with the static assets, please read the readme.md: https://github.com/joomla/joomla-cms/tree/4.0-dev/build

Ok
What I saw is the difference that one is es5 and another is es6

I do not understand why, I admit my lack of knowledge, but since I mentioned that and you confirm that it is well I trust.

@Fedik
Copy link
Copy Markdown
Member

Fedik commented Oct 3, 2021

Simplifying turns out not to simple 😄

@Fedik
Copy link
Copy Markdown
Member

Fedik commented Oct 3, 2021

I have tested this item ✅ successfully on 1652beb


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35725.

"uri": "system/keepalive-es5.min.js",
"attributes": {
"defer": true,
"nomodule": true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand the assets system, why the "nomodule": true here but "type": "module" for non-es5?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I have much to learn here

@ditsuke
Copy link
Copy Markdown
Contributor

ditsuke commented Oct 6, 2021

I have tested this item ✅ successfully on 1652beb


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35725.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35725.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 7, 2021
@bembelimen bembelimen merged commit 072d1f8 into joomla:4.0-dev Oct 7, 2021
@bembelimen
Copy link
Copy Markdown
Contributor

Thx

@bembelimen bembelimen added this to the Joomla 4.0.4 milestone Oct 7, 2021
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Oct 7, 2021
@dgrammatiko dgrammatiko deleted the KeepAlive branch October 7, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NPM Resource Changed This Pull Request can't be tested by Patchtester

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants