Skip to content

Commit

Permalink
WP 6.4 module fix, lazy load improvement, clarifications, Topics API …
Browse files Browse the repository at this point in the history
…silencer
  • Loading branch information
chrisblakley committed Nov 14, 2023
1 parent 04a8fd8 commit 27032a3
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nebula-wp",
"title": "Nebula",
"description": "Advanced Starter WordPress Theme for Developers",
"version": "11.5.16.730",
"version": "11.6.14.415",
"homepage": "https://gearside.com/nebula/",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion Nebula-Child/assets/css/admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Nebula-Child/resources/sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//BEGIN automated edits. These will be automatically overwritten.
const THEME_NAME = 'nebula-child';
const NEBULA_VERSION = 'v11.5.16.730'; //Monday, October 16, 2023 5:30:48 PM
const NEBULA_VERSION = 'v11.6.14.415'; //Tuesday, November 14, 2023 9:58:19 AM
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';
Expand Down
4 changes: 2 additions & 2 deletions Nebula-Child/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/login.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/pre.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 17 additions & 22 deletions assets/js/modules/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,28 +133,23 @@ nebula.eventTracking = async function(){
if ( 'browsingTopics' in document && document.featurePolicy.allowsFeature('browsing-topics') ){ //Seems to be available in Chrome 117+ (at least in Canary)
//console.log('Topics API is available on this page!');

//This event is just for reference to know that it is available. Will remove after widespread support.
gtag('event', 'topics_api_available', {
event_category: 'Topics API', //@todo "Nebula" 0: Remove after July 2023
event_action: 'Available', //@todo "Nebula" 0: Remove after July 2023
event_label: 'The Topics API is available in this browser', //@todo "Nebula" 0: Remove after July 2023
status: 'Available',
non_interaction: true
});

document.browsingTopics().then(function(topics){
//console.log('Interest Topics:', topics);

if ( topics ){ //If the topics array is not empty
gtag('event', 'topics_api', {
event_category: 'Topics API', //@todo "Nebula" 0: Remove after July 2023
event_action: 'Interests', //@todo "Nebula" 0: Remove after July 2023
event_label: topics.join(', '), //@todo "Nebula" 0: Remove after July 2023
interests: topics.join(', '),
non_interaction: true
});
}
});
try {
document.browsingTopics().then(function(topics){
//console.log('Interest Topics:', topics);

if ( topics ){ //If the topics array is not empty
gtag('event', 'topics_api', {
event_category: 'Topics API', //@todo "Nebula" 0: Remove after July 2023
event_action: 'Interests', //@todo "Nebula" 0: Remove after July 2023
event_label: topics.join(', '), //@todo "Nebula" 0: Remove after July 2023
interests: topics.join(', '),
non_interaction: true
});
}
});
} catch {
//Ignore errors
}
}

nebula.once(function(){
Expand Down
6 changes: 3 additions & 3 deletions assets/js/modules/optimization.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ nebula.lazyLoadAssets = async function(){
});

//Create the entries and add them to the observer
jQuery('.nebula-lazy-position, .lazy-load').each(function(){
jQuery('.nebula-lazy-position, .lazy-load, .nebula-lazy').each(function(){
lazyObserver.observe(jQuery(this)[0]); //Observe the element
});

Expand Down Expand Up @@ -589,8 +589,8 @@ nebula.loadElement = async function(element){
}

//Background images
if ( element.hasClass('lazy-load') ){
element.removeClass('lazy-load').addClass('lazy-loaded');
if ( element.hasClass('lazy-load') || element.hasClass('nebula-lazy') ){
element.removeClass('lazy-load nebula-lazy').addClass('lazy-loaded');
}
};

Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
Author: Pinckney Hugo Group
Author URI: http://www.pinckneyhugo.com
Version: 11.5.16.730
Version: 11.6.14.415
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, threaded-comments, theme-options, sticky-post, post-formats, microformats, full-width-template, front-page-post-form, flexible-header, featured-images, featured-image-header, editor-style, custom-menu, custom-colors, accessibility-ready
Expand Down
Loading

0 comments on commit 27032a3

Please sign in to comment.