Coder Social home page Coder Social logo

figuren-theater / ft-performance Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 265 KB

Fast websites are more accessible, more sustainable and are giving a better UX. This is the code which accelerates figuren.theater and its WordPress Multisite Network.

Home Page: https://figuren.theater/

License: GNU General Public License v3.0

PHP 100.00%
caching performance pre-loading wordpress pre-fetching

ft-performance's Issues

Establish quality standards

Repository Standards

Performance

Stories

  1. 0 of 1
    PART Story tracking issue

Plugins

  1. 0 of 1
    PART Plugin tracking issue

Update ft-package

everything starts with develop

Re-Enable locale storage for PWA screenshots (privacy)

	// $new_name = 'pwa-'.$new_name.'.jpeg';

	// $dir = $this->set_screenshots_dir_path(); // !
	// $new_file = $dir.'/'.$new_name;

	// already cached ?
	// DISABLED,
	// because it's nothing saved
	// to pick up here
	// if (
	// file_exists($new_file)
	// &&
	// file not older than 7 days
	// ! ( time() - filemtime($new_file) > 7 * 24 * 3600 )
	// file not older than 60 seconds // DEBUG
	// ! ( time() - filemtime($new_file) > 60 )
	// )
	// return $this->set_screenshots_dir_url() . $new_name; //!

Old stuff of

// $new_name = 'pwa-'.$new_name.'.jpeg';

Remove spaghetti-dependency to f.t/ft-theming

function set_colors( array $manifest ) : array {
	$relevant_colors = Themed_Login\ft_get_relevant_colors();

	$manifest['background_color'] = $relevant_colors['ft_accent'];
	$manifest['theme_color']      = $relevant_colors['ft_accent'];

	return $manifest;
}

* Provide app colors for background and theme.
*
* Overriding the (default) manifest json.
*
* @param array<string, mixed> $manifest Data of the manifest, to send in the REST API response.
*
* @return array<string, mixed> $manifest Data of the manifest, to send in the REST API response.
*/
function set_colors( array $manifest ) : array {
$relevant_colors = Themed_Login\ft_get_relevant_colors();
$manifest['background_color'] = $relevant_colors['ft_accent'];
$manifest['theme_color'] = $relevant_colors['ft_accent'];
return $manifest;
}
/**
* Provide app defaults for OS integration and UI.

Caching

Tasks

  1. 0 of 1
    PART Plugin tracking issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.